summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorWu-cheng Li <>2009-03-24 18:01:34 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 18:01:34 -0700
commita34bb20db5e626092b4c7371b73c2703b9fe1ffa (patch)
tree5d8193bf7e37c2e4387d278ce8ca01626bc9aab3 /camera
parent7f1f3bb174263b46dbfa9fa394428ff3d8408308 (diff)
downloadframeworks_base-a34bb20db5e626092b4c7371b73c2703b9fe1ffa.zip
frameworks_base-a34bb20db5e626092b4c7371b73c2703b9fe1ffa.tar.gz
frameworks_base-a34bb20db5e626092b4c7371b73c2703b9fe1ffa.tar.bz2
Automated import from //branches/cupcake/...@141613,141613
Diffstat (limited to 'camera')
-rw-r--r--camera/libcameraservice/CameraService.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp
index c5c95b0..6a6a811 100644
--- a/camera/libcameraservice/CameraService.cpp
+++ b/camera/libcameraservice/CameraService.cpp
@@ -731,6 +731,11 @@ void CameraService::Client::shutterCallback(void *user)
return;
}
+ // Play shutter sound.
+ if (client->mMediaPlayerClick.get() != NULL) {
+ client->mMediaPlayerClick->start();
+ }
+
// Screen goes black after the buffer is unregistered.
if (client->mSurface != 0 && !client->mUseOverlay) {
client->mSurface->unregisterBuffers();
@@ -754,10 +759,6 @@ void CameraService::Client::shutterCallback(void *user)
client->mSurface->registerBuffers(buffers);
}
-
- if (client->mMediaPlayerClick.get() != NULL) {
- client->mMediaPlayerClick->start();
- }
}
// picture callback - raw image ready