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