From 35f859b338c0922094ecfc37fb8157530df6b305 Mon Sep 17 00:00:00 2001 From: Patric Frederiksen Date: Tue, 10 Jul 2012 13:38:35 +0200 Subject: Shutter sound is heard at the end of the recorded video On fast hardware, which is more common, the shutter sound is played and recorded before video recording is stopped. Before we call play shutter sound before calling stop recording. With this fix we call play shutter sound after calling stop recording. Change-Id: I06a3e65fd2700f1d2457fea5ff0f64500eac436f --- services/camera/libcameraservice/CameraClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services') diff --git a/services/camera/libcameraservice/CameraClient.cpp b/services/camera/libcameraservice/CameraClient.cpp index 80ccb43..54829ef 100644 --- a/services/camera/libcameraservice/CameraClient.cpp +++ b/services/camera/libcameraservice/CameraClient.cpp @@ -445,9 +445,9 @@ void CameraClient::stopRecording() { Mutex::Autolock lock(mLock); if (checkPidAndHardware() != NO_ERROR) return; - mCameraService->playSound(CameraService::SOUND_RECORDING); disableMsgType(CAMERA_MSG_VIDEO_FRAME); mHardware->stopRecording(); + mCameraService->playSound(CameraService::SOUND_RECORDING); mPreviewBuffer.clear(); } -- cgit v1.1