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);
     }