diff options
author | Mohan Kandra <c_mkandr@quicinc.com> | 2010-01-29 13:51:20 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2010-12-14 05:14:07 -0500 |
commit | cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc (patch) | |
tree | 1b8e5f22aba63e27d96ba5c11793c7ae42c76f69 | |
parent | 1b419fd6edbe48707a97c97d60b23a26771bf1f1 (diff) | |
download | frameworks_base-cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc.zip frameworks_base-cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc.tar.gz frameworks_base-cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc.tar.bz2 |
Camera: Disable Video_Frame message before stop recording call
Disable VIDEO_FRAME message before stop recording is issed, which will
avoid the race condition that happens between stop recording and
receivePreviewframe on mRecordWait lock.
Change-Id: I3da4a22a1423390f5714edb8d24aef215148bee1
-rw-r--r-- | camera/libcameraservice/CameraService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index 259ceed..b567d1a 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -833,8 +833,8 @@ void CameraService::Client::stopRecording() mMediaPlayerBeep->start(); } - mHardware->stopRecording(); mHardware->disableMsgType(CAMERA_MSG_VIDEO_FRAME); + mHardware->stopRecording(); LOGV("stopRecording(), hardware stopped OK"); } |