diff options
author | Sundar Raman <sunds@ti.com> | 2011-11-10 08:15:13 -0800 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-11-10 13:49:03 -0800 |
commit | 46446baf34465c30dc152798a970f275ea639010 (patch) | |
tree | 763b65d79629097b2c576d73ead5bbfa50af08f2 /camera/AppCallbackNotifier.cpp | |
parent | 0a146dc3d1d0f32000b92dc202b9de023cb6d027 (diff) | |
download | hardware_ti_omap4-46446baf34465c30dc152798a970f275ea639010.zip hardware_ti_omap4-46446baf34465c30dc152798a970f275ea639010.tar.gz hardware_ti_omap4-46446baf34465c30dc152798a970f275ea639010.tar.bz2 |
CameraHAL: Clear events queue fix, clear command queue on exit
Fix 2/3 for b/5593964.
1. The events queue wasn't being cleared correctly inside
OMXCameraAdapter as some items were being removed while the
index was being formulated based on the original size
2. The command queue should be cleared before posting the EXIT
message for the OMX adapter threads so as not to process those
messages since we are exiting
Change-Id: I0a5eaceb3d1504fee05b064ebb5fe888e129ad44
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'camera/AppCallbackNotifier.cpp')
-rw-r--r-- | camera/AppCallbackNotifier.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camera/AppCallbackNotifier.cpp b/camera/AppCallbackNotifier.cpp index 4513c48..b431f54 100644 --- a/camera/AppCallbackNotifier.cpp +++ b/camera/AppCallbackNotifier.cpp @@ -1168,9 +1168,7 @@ void AppCallbackNotifier::flushEventQueue() { Mutex::Autolock lock(mLock); - TIUTILS::Message msg; - while(!mEventQ.isEmpty()) - mEventQ.get(&msg); + mEventQ.clear(); } } |