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

Unified Diff: webrtc/api/videosource.cc

Issue 1758223002: Change webrtc::VideoSourceInterface to inherit rtc::VideoSourceInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « webrtc/api/videosource.h ('k') | webrtc/api/videosource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « webrtc/api/videosource.h ('k') | webrtc/api/videosource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698