Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor, a=RyanVM
authorAndreas Pehrson <pehrsons@mozilla.com>
Thu, 05 Apr 2018 12:03:12 +0200
changeset 463120 784c44089b9e0071f8c172aba9e91237a52ec2fd
parent 463119 4e9b4893ee3e2b9d8a8f73ed5b50f49428ff5dbb
child 463121 83b358633328cc642a2cefc83527854e9b91c23c
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdminor, RyanVM
bugs1440255
milestone60.0
Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor, a=RyanVM MozReview-Commit-ID: Ga3TgD9J030
media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
--- a/media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
+++ b/media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
@@ -157,21 +157,21 @@ public class VideoCaptureAndroid impleme
       boolean isRunning = camera != null;
       if (!isRunning) {
         camera = Camera.open(id);
 
         if (localPreview != null) {
           localPreview.addCallback(this);
           if (localPreview.getSurface() != null &&
               localPreview.getSurface().isValid()) {
-	    try {
-	      camera.setPreviewDisplay(localPreview);
-	    } catch (IOException e) {
-	      throw new RuntimeException(e);
-	    }
+            try {
+              camera.setPreviewDisplay(localPreview);
+            } catch (IOException e) {
+              throw new RuntimeException(e);
+            }
           }
         } else {
           // No local renderer (we only care about onPreviewFrame() buffers, not a
           // directly-displayed UI element).  Camera won't capture without
           // setPreview{Texture,Display}, so we create a SurfaceTexture and hand
           // it over to Camera, but never listen for frame-ready callbacks,
           // and never call updateTexImage on it.
           try {