commit | efb039e07c688c21122c938b008457bd4f555898 | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Sat Sep 15 13:27:52 2012 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Sat Sep 15 13:27:52 2012 -0700 |
tree | 2bd9620e9e9b8be3e76e0cd2d6d67b495b6fe94a | |
parent | b845c6b0c3066d6791973be830f0953477461a65 [diff] [blame] |
Camera2: Don't play shutter sound when doing a video snapshot Bug: 7171820 Change-Id: I11ec0900aff3cdf4b57ae1bfc75f7acfecf95098
diff --git a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp index 678f114..981fdb4 100644 --- a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp +++ b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp
@@ -410,7 +410,8 @@ return DONE; } - if (l.mParameters.playShutterSound) { + if (l.mParameters.playShutterSound && + l.mParameters.state == Parameters::STILL_CAPTURE) { client->getCameraService()->playSound(CameraService::SOUND_SHUTTER); }