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

Unified Diff: talk/app/webrtc/videosource.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/app/webrtc/videosource.h ('k') | talk/app/webrtc/videosourceinterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « talk/app/webrtc/videosource.h ('k') | talk/app/webrtc/videosourceinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698