summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camera/libcameraservice/CameraService.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp
index 578cac0..738821c 100644
--- a/camera/libcameraservice/CameraService.cpp
+++ b/camera/libcameraservice/CameraService.cpp
@@ -827,14 +827,15 @@ void CameraService::Client::stopRecording()
return;
}
+ mHardware->disableMsgType(CAMERA_MSG_VIDEO_FRAME);
+ mHardware->stopRecording();
+ LOGV("stopRecording(), hardware stopped OK");
+
if (mMediaPlayerBeep.get() != NULL) {
mMediaPlayerBeep->seekTo(0);
mMediaPlayerBeep->start();
}
- mHardware->disableMsgType(CAMERA_MSG_VIDEO_FRAME);
- mHardware->stopRecording();
- LOGV("stopRecording(), hardware stopped OK");
}
// hold preview buffer lock