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

Unified Diff: webrtc/pc/channel.cc

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased, no longer any proxy object changes. Created 4 years, 8 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/pc/channel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channel.cc
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc
index 9556beb6fe5612a4a778a341c0366b796e24e183..497610da787189486d3555a18d45261e94cb0333 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -1690,9 +1690,11 @@ bool VideoChannel::SetSink(uint32_t ssrc,
return true;
}
-bool VideoChannel::SetCapturer(uint32_t ssrc, VideoCapturer* capturer) {
- return InvokeOnWorker(Bind(&VideoMediaChannel::SetCapturer,
- media_channel(), ssrc, capturer));
+void VideoChannel::SetSource(
+ uint32_t ssrc,
+ rtc::VideoSourceInterface<cricket::VideoFrame>* source) {
+ worker_thread()->Invoke<void>(
+ Bind(&VideoMediaChannel::SetSource, media_channel(), ssrc, source));
}
bool VideoChannel::SetVideoSend(uint32_t ssrc,
« no previous file with comments | « webrtc/pc/channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698