Merge "Camera2: Don't play shutter sound when doing a video snapshot" into jb-mr1-dev
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);
     }