Index: webrtc/sdk/objc/Framework/Classes/RTCEAGLVideoView.m |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCEAGLVideoView.m b/webrtc/sdk/objc/Framework/Classes/RTCEAGLVideoView.m |
index d215265d3b070f1f51ced821f9cfbadddc613df3..2d5355d24980aa4f8e4be6b56562c3cec368470a 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCEAGLVideoView.m |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCEAGLVideoView.m |
@@ -210,10 +210,12 @@ |
} |
- (void)renderFrame:(RTCVideoFrame *)frame { |
+#if !TARGET_OS_IPHONE |
// Generate the i420 frame on video send thread instead of main thread. |
// TODO(tkchin): Remove this once RTCEAGLVideoView supports uploading |
- // CVPixelBuffer textures. |
+ // CVPixelBuffer textures on OSX. |
[frame convertBufferIfNeeded]; |
+#endif |
self.videoFrame = frame; |
} |