diff options
author | Emilian Peev <epeev@mm-sol.com> | 2012-10-02 18:05:06 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-10-10 18:55:51 +0300 |
commit | 4e970191483f55151a6c3f8abeb7cb5a13112f7b (patch) | |
tree | 3cfecffa8278fefbf5b14751c4282242be74832b /camera/ANativeWindowDisplayAdapter.cpp | |
parent | 230af436bfb220922006a6f9e0acb274800ca498 (diff) | |
download | hardware_ti_omap4-4e970191483f55151a6c3f8abeb7cb5a13112f7b.zip hardware_ti_omap4-4e970191483f55151a6c3f8abeb7cb5a13112f7b.tar.gz hardware_ti_omap4-4e970191483f55151a6c3f8abeb7cb5a13112f7b.tar.bz2 |
CameraHal: Sync access to 'mFramesType'
Fixes an issue with robustness test case where
flushBuffers returns error and the test case hangs
Change-Id: I83c2b1bc79a580fc32c490d47018b3084d305e5e
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Diffstat (limited to 'camera/ANativeWindowDisplayAdapter.cpp')
-rw-r--r-- | camera/ANativeWindowDisplayAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/ANativeWindowDisplayAdapter.cpp b/camera/ANativeWindowDisplayAdapter.cpp index ae11f4a..45f7ba0 100644 --- a/camera/ANativeWindowDisplayAdapter.cpp +++ b/camera/ANativeWindowDisplayAdapter.cpp @@ -1293,11 +1293,11 @@ bool ANativeWindowDisplayAdapter::handleFrameReturn() } frameType = (CameraFrame::FrameType) mFramesType.valueAt(k); + mFramesType.removeItem((int) mBuffers[i].opaque); } CAMHAL_LOGVB("handleFrameReturn: found graphic buffer %d of %d", i, mBufferCount-1); mFrameProvider->returnFrame(&mBuffers[i], frameType); - mFramesType.removeItem((int) mBuffers[i].opaque); return true; } |