Bug 1440255 - Remove tabs from VideoCaptureAndroid. r?dminor
MozReview-Commit-ID: Ga3TgD9J030
--- 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 {