Index: talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java |
diff --git a/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java b/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java |
index 7fa32f8050ecc8476641ef7fb94e90cffb47a08d..2bfa9787ed9a60c2556d320b95808cc1fc8811ac 100644 |
--- a/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java |
+++ b/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java |
@@ -550,7 +550,10 @@ public class VideoCapturerAndroid extends VideoCapturer implements |
parameters.setPreviewFpsRange(captureFormat.minFramerate, captureFormat.maxFramerate); |
} |
parameters.setPreviewSize(captureFormat.width, captureFormat.height); |
- parameters.setPreviewFormat(captureFormat.imageFormat); |
+ |
+ if (!isCapturingToTexture) { |
+ parameters.setPreviewFormat(captureFormat.imageFormat); |
+ } |
// Picture size is for taking pictures and not for preview/video, but we need to set it anyway |
// as a workaround for an aspect ratio problem on Nexus 7. |
final android.hardware.Camera.Size pictureSize = |