Index: talk/app/webrtc/videosource.cc |
diff --git a/talk/app/webrtc/videosource.cc b/talk/app/webrtc/videosource.cc |
index 4b371e3ed58e771809905c4450b519e12b056d7f..8006c583b6f7f00fac9b6b39d18401f33f06ef57 100644 |
--- a/talk/app/webrtc/videosource.cc |
+++ b/talk/app/webrtc/videosource.cc |
@@ -436,19 +436,21 @@ void VideoSource::Restart() { |
SetState(kEnded); |
return; |
} |
- for(cricket::VideoRenderer* sink : sinks_) { |
- channel_manager_->AddVideoRenderer(video_capturer_.get(), sink); |
+ for (auto* sink : sinks_) { |
+ channel_manager_->AddVideoSink(video_capturer_.get(), sink); |
} |
} |
-void VideoSource::AddSink(cricket::VideoRenderer* output) { |
+void VideoSource::AddSink( |
+ rtc::VideoSinkInterface<cricket::VideoFrame>* output) { |
sinks_.push_back(output); |
- channel_manager_->AddVideoRenderer(video_capturer_.get(), output); |
+ channel_manager_->AddVideoSink(video_capturer_.get(), output); |
} |
-void VideoSource::RemoveSink(cricket::VideoRenderer* output) { |
+void VideoSource::RemoveSink( |
+ rtc::VideoSinkInterface<cricket::VideoFrame>* output) { |
sinks_.remove(output); |
- channel_manager_->RemoveVideoRenderer(video_capturer_.get(), output); |
+ channel_manager_->RemoveVideoSink(video_capturer_.get(), output); |
} |
// OnStateChange listens to the ChannelManager::SignalVideoCaptureStateChange. |