summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorPatric Frederiksen <patric.frederiksen@sonymobile.com>2012-07-10 13:38:35 +0200
committerHenrik Baard <henrik.baard@sonymobile.com>2012-07-10 13:41:23 +0200
commita21795c5d1d4ca9a6361e4b2db3e1f053e67b1c9 (patch)
tree8052661f7b84736d863a553b4c3e0037729363e9 /services
parentffb829430ff20ccd6c13e6ed894f2373b2d93939 (diff)
downloadframeworks_av-a21795c5d1d4ca9a6361e4b2db3e1f053e67b1c9.zip
frameworks_av-a21795c5d1d4ca9a6361e4b2db3e1f053e67b1c9.tar.gz
frameworks_av-a21795c5d1d4ca9a6361e4b2db3e1f053e67b1c9.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/CameraService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
index bf07f8b..385be50 100644
--- a/services/camera/libcameraservice/CameraService.cpp
+++ b/services/camera/libcameraservice/CameraService.cpp
@@ -721,9 +721,9 @@ void CameraService::Client::stopRecording() {
Mutex::Autolock lock(mLock);
if (checkPidAndHardware() != NO_ERROR) return;
- mCameraService->playSound(SOUND_RECORDING);
disableMsgType(CAMERA_MSG_VIDEO_FRAME);
mHardware->stopRecording();
+ mCameraService->playSound(SOUND_RECORDING);
mPreviewBuffer.clear();
}