summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorPatric Frederiksen <patric.frederiksen@sonymobile.com>2012-07-10 13:38:35 +0200
committerEino-Ville Talvala <etalvala@google.com>2012-08-01 15:54:55 -0700
commit35f859b338c0922094ecfc37fb8157530df6b305 (patch)
tree62fc06cc2c07cd7e7a559f0f3b744ce30a24fdd1 /services
parent25f0d7ba1987de61c75f8c68b19de48e0ad9736c (diff)
downloadframeworks_av-35f859b338c0922094ecfc37fb8157530df6b305.zip
frameworks_av-35f859b338c0922094ecfc37fb8157530df6b305.tar.gz
frameworks_av-35f859b338c0922094ecfc37fb8157530df6b305.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/camera/libcameraservice/CameraClient.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}