Index: webrtc/api/videosource.cc |
diff --git a/webrtc/api/videosource.cc b/webrtc/api/videosource.cc |
index 0178d1ec59466ba3b20270b5079e6a1db964f412..a15ed19ef27c59d6cd5ec9f176cb4d74590a4386 100644 |
--- a/webrtc/api/videosource.cc |
+++ b/webrtc/api/videosource.cc |
@@ -394,13 +394,12 @@ void VideoSource::Restart() { |
started_ = true; |
} |
-void VideoSource::AddSink( |
- rtc::VideoSinkInterface<cricket::VideoFrame>* output) { |
- // TODO(perkj): Use fake rtc::VideoSinkWants for now. This will change once |
- // webrtc::VideoSourceInterface inherit rtc::VideoSourceInterface. |
+void VideoSource::AddOrUpdateSink( |
+ rtc::VideoSinkInterface<cricket::VideoFrame>* sink, |
+ const rtc::VideoSinkWants& wants) { |
worker_thread_->Invoke<void>( |
rtc::Bind(&cricket::VideoCapturer::AddOrUpdateSink, |
- video_capturer_.get(), output, rtc::VideoSinkWants())); |
+ video_capturer_.get(), sink, wants)); |
} |
void VideoSource::RemoveSink( |