Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: talk/session/media/channelmanager.cc

Issue 1594973006: New rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Workaround to not break chrome. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | webrtc/media/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | webrtc/media/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698