summaryrefslogtreecommitdiffstats
path: root/camera/OMXCameraAdapter
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2012-05-31 19:24:52 -0500
committerDaniel Levin <dendy@ti.com>2012-11-26 18:22:44 +0200
commit9e824fcae87184ffdbf772e07348ba3c90f31f45 (patch)
treeee44482d08f912e04b6b16f528f2b3da5ecb7a5a /camera/OMXCameraAdapter
parent52715fb84cb69ee7e21312f31e9a4516066b5651 (diff)
downloadhardware_ti_omap4-9e824fcae87184ffdbf772e07348ba3c90f31f45.zip
hardware_ti_omap4-9e824fcae87184ffdbf772e07348ba3c90f31f45.tar.gz
hardware_ti_omap4-9e824fcae87184ffdbf772e07348ba3c90f31f45.tar.bz2
CameraHAL:OMX:Capture: Flush buffers before freeing
Flush the buffers before calling FreeBuffer on them to prevent FillBufferDone call to access the buffers after/ during FreeBuffer call. Change-Id: I026c9c99095649888acb28bbf7d9f06cd776eea3 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'camera/OMXCameraAdapter')
-rw-r--r--camera/OMXCameraAdapter/OMXCapture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXCapture.cpp b/camera/OMXCameraAdapter/OMXCapture.cpp
index eebed40..895ff69 100644
--- a/camera/OMXCameraAdapter/OMXCapture.cpp
+++ b/camera/OMXCameraAdapter/OMXCapture.cpp
@@ -1490,6 +1490,8 @@ status_t OMXCameraAdapter::disableImagePort(){
imgCaptureData = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex];
imgRawCaptureData = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mVideoPortIndex]; // for RAW capture
+ flushBuffers(OMX_CAMERA_PORT_IMAGE_OUT_IMAGE);
+
///Register for Image port Disable event
ret = RegisterForEvent(mCameraAdapterParameters.mHandleComp,
OMX_EventCmdComplete,