summaryrefslogtreecommitdiffstats
path: root/camera/AppCallbackNotifier.cpp
diff options
context:
space:
mode:
authorDaniel Levin <dendy@ti.com>2011-12-12 20:24:59 -0600
committerDaniel Levin <dendy@ti.com>2012-07-25 08:55:39 -0500
commit2a433cd174fb5eb3dc32398e07f3d188a8fa09a2 (patch)
tree5466a8b501eb2afadf02c2c77911729edbfb0d64 /camera/AppCallbackNotifier.cpp
parent4bc95486750861a1ef1ec9fc94f2fd5649861ca5 (diff)
downloadhardware_ti_omap4-2a433cd174fb5eb3dc32398e07f3d188a8fa09a2.zip
hardware_ti_omap4-2a433cd174fb5eb3dc32398e07f3d188a8fa09a2.tar.gz
hardware_ti_omap4-2a433cd174fb5eb3dc32398e07f3d188a8fa09a2.tar.bz2
CameraHAL: Fixed launching Jpeg Encoder
Encoder instance should be added to the gEncoderQueue before running the thread. Otherwise Encoder callback has chance to be triggered without gEncoderQueue hash map populated. Signed-off-by: Daniel Levin <dendy@ti.com> Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com> Change-Id: Iabfef2ada3c4bd7e4e26405c75ce0d4a171b9d30
Diffstat (limited to 'camera/AppCallbackNotifier.cpp')
-rw-r--r--camera/AppCallbackNotifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/AppCallbackNotifier.cpp b/camera/AppCallbackNotifier.cpp
index 87dfb26..48dc03d 100644
--- a/camera/AppCallbackNotifier.cpp
+++ b/camera/AppCallbackNotifier.cpp
@@ -919,8 +919,8 @@ void AppCallbackNotifier::notifyFrame()
this,
raw_picture,
exif_data);
- encoder->run();
gEncoderQueue.add(frame->mBuffer, encoder);
+ encoder->run();
encoder.clear();
if (params != NULL)
{