Index: talk/app/webrtc/objc/RTCVideoRendererAdapter.mm |
diff --git a/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm b/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm |
index b0b21291b91604134b238003205022efa1b01a79..a7f7e95d05f9d8dbe11acd598ae15206ff85de35 100644 |
--- a/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm |
+++ b/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm |
@@ -36,15 +36,16 @@ |
namespace webrtc { |
-class RTCVideoRendererNativeAdapter : public VideoRendererInterface { |
+class RTCVideoRendererNativeAdapter |
+ : public rtc::VideoSinkInterface<cricket::VideoFrame> { |
public: |
RTCVideoRendererNativeAdapter(RTCVideoRendererAdapter* adapter) { |
_adapter = adapter; |
_size = CGSizeZero; |
} |
- void RenderFrame(const cricket::VideoFrame* videoFrame) override { |
- const cricket::VideoFrame* frame = videoFrame->GetCopyWithRotationApplied(); |
+ void OnFrame(const cricket::VideoFrame& videoFrame) override { |
+ const cricket::VideoFrame* frame = videoFrame.GetCopyWithRotationApplied(); |
CGSize currentSize = CGSizeMake(frame->GetWidth(), frame->GetHeight()); |
if (!CGSizeEqualToSize(_size, currentSize)) { |
_size = currentSize; |
@@ -74,7 +75,7 @@ class RTCVideoRendererNativeAdapter : public VideoRendererInterface { |
return self; |
} |
-- (webrtc::VideoRendererInterface*)nativeVideoRenderer { |
+- (rtc::VideoSinkInterface<cricket::VideoFrame> *)nativeVideoRenderer { |
return _adapter.get(); |
} |