Index: talk/session/media/channelmanager.cc |
diff --git a/talk/session/media/channelmanager.cc b/talk/session/media/channelmanager.cc |
index bd89a41328cb345728bdec0912b4f230a3242a94..7973f5c2d695ab5a8b23aa3c3474bb0c1c7215e7 100644 |
--- a/talk/session/media/channelmanager.cc |
+++ b/talk/session/media/channelmanager.cc |
@@ -500,18 +500,20 @@ bool ChannelManager::RestartVideoCapture( |
video_capturer, previous_format, desired_format, options)); |
} |
-bool ChannelManager::AddVideoRenderer( |
- VideoCapturer* capturer, VideoRenderer* renderer) { |
- return initialized_ && worker_thread_->Invoke<bool>( |
- Bind(&CaptureManager::AddVideoRenderer, |
- capture_manager_.get(), capturer, renderer)); |
+void ChannelManager::AddVideoSink( |
+ VideoCapturer* capturer, rtc::VideoSinkInterface<VideoFrame>* sink) { |
+ if (initialized_) |
+ worker_thread_->Invoke<void>( |
+ Bind(&CaptureManager::AddVideoSink, |
+ capture_manager_.get(), capturer, sink)); |
} |
-bool ChannelManager::RemoveVideoRenderer( |
- VideoCapturer* capturer, VideoRenderer* renderer) { |
- return initialized_ && worker_thread_->Invoke<bool>( |
- Bind(&CaptureManager::RemoveVideoRenderer, |
- capture_manager_.get(), capturer, renderer)); |
+void ChannelManager::RemoveVideoSink( |
+ VideoCapturer* capturer, rtc::VideoSinkInterface<VideoFrame>* sink) { |
+ if (initialized_) |
+ worker_thread_->Invoke<void>( |
+ Bind(&CaptureManager::RemoveVideoSink, |
+ capture_manager_.get(), capturer, sink)); |
} |
bool ChannelManager::IsScreencastRunning() const { |