OSDN Git Service

Camera2: Don't play shutter sound when doing a video snapshot
authorEino-Ville Talvala <etalvala@google.com>
Sat, 15 Sep 2012 20:27:52 +0000 (13:27 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Sat, 15 Sep 2012 20:27:52 +0000 (13:27 -0700)
Bug: 7171820
Change-Id: I11ec0900aff3cdf4b57ae1bfc75f7acfecf95098

services/camera/libcameraservice/camera2/CaptureSequencer.cpp

index 678f114..981fdb4 100644 (file)
@@ -410,7 +410,8 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture(
         return DONE;
     }
 
-    if (l.mParameters.playShutterSound) {
+    if (l.mParameters.playShutterSound &&
+            l.mParameters.state == Parameters::STILL_CAPTURE) {
         client->getCameraService()->playSound(CameraService::SOUND_SHUTTER);
     }