From cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc Mon Sep 17 00:00:00 2001 From: Mohan Kandra Date: Fri, 29 Jan 2010 13:51:20 -0800 Subject: 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 --- camera/libcameraservice/CameraService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.1