diff options
author | Emilian Peev <epeev@mm-sol.com> | 2012-10-10 15:52:54 +0300 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2012-10-15 09:50:22 -0700 |
commit | b6a9d10508e321ebc53193a117bf6c65d98ae888 (patch) | |
tree | bb3435c3b0fac8bf78867774fdfb2f3c870cdfd9 /camera/OMXCameraAdapter/OMXFocus.cpp | |
parent | 3d6b69f0a0fb325443ef8c2987c16af1f8618d3e (diff) | |
download | hardware_ti_omap4xxx-b6a9d10508e321ebc53193a117bf6c65d98ae888.zip hardware_ti_omap4xxx-b6a9d10508e321ebc53193a117bf6c65d98ae888.tar.gz hardware_ti_omap4xxx-b6a9d10508e321ebc53193a117bf6c65d98ae888.tar.bz2 |
CameraHal: Avoid race condition during recording stop
- A race condition is possible when recording is stopped.
'BaseCameraAdapter::stopVideoCapture()' is clearing
'mVideoBuffersAvailable'. A delayed video frame from
'AppCallbackNotifier' can return afterwards though and
then try to query the already empty 'KeyedVector'. This
will result in a segfault. Solution is to move the vector
reset away from 'stopVideoCapture()' and in to
'startVideoCapture()' where it is needed.
Bug: 7021214
Change-Id: Ic234189b49e35c990b3af70bd713a12cb762362c
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Diffstat (limited to 'camera/OMXCameraAdapter/OMXFocus.cpp')
0 files changed, 0 insertions, 0 deletions