Index: webrtc/sdk/android/api/org/webrtc/VideoRenderer.java |
diff --git a/webrtc/sdk/android/api/org/webrtc/VideoRenderer.java b/webrtc/sdk/android/api/org/webrtc/VideoRenderer.java |
index 623f6b94cc7a4bfac1dc447d3dd2641ef1bb3584..ec732be9449d1722204d01f9b25448ebfba063a8 100644 |
--- a/webrtc/sdk/android/api/org/webrtc/VideoRenderer.java |
+++ b/webrtc/sdk/android/api/org/webrtc/VideoRenderer.java |
@@ -93,7 +93,8 @@ public class VideoRenderer { |
if (rotationDegree % 90 != 0) { |
throw new IllegalArgumentException("Rotation degree not multiple of 90: " + rotationDegree); |
} |
- if (buffer instanceof VideoFrame.TextureBuffer) { |
+ if (buffer instanceof VideoFrame.TextureBuffer |
+ && ((VideoFrame.TextureBuffer) buffer).getType() == VideoFrame.TextureBuffer.Type.OES) { |
VideoFrame.TextureBuffer textureBuffer = (VideoFrame.TextureBuffer) buffer; |
this.yuvFrame = false; |
this.textureId = textureBuffer.getTextureId(); |