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

Unified Diff: webrtc/pc/channel.cc

Issue 1838413002: Combining SetVideoSend and SetSource into one method. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding TODO. Created 4 years, 7 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') | webrtc/pc/channel_unittest.cc » ('j') | 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 cac0ea2ea893f504470ba075bc3d4445e2c36f31..be476468c4a3ab016f5d86c90e6c4f019ddd53b9 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -1871,18 +1871,13 @@ bool VideoChannel::SetSink(uint32_t ssrc,
return true;
}
-void VideoChannel::SetSource(
+bool VideoChannel::SetVideoSend(
uint32_t ssrc,
+ bool mute,
+ const VideoOptions* options,
rtc::VideoSourceInterface<cricket::VideoFrame>* source) {
- worker_thread()->Invoke<void>(
- Bind(&VideoMediaChannel::SetSource, media_channel(), ssrc, source));
-}
-
-bool VideoChannel::SetVideoSend(uint32_t ssrc,
- bool mute,
- const VideoOptions* options) {
return InvokeOnWorker(Bind(&VideoMediaChannel::SetVideoSend, media_channel(),
- ssrc, mute, options));
+ ssrc, mute, options, source));
}
webrtc::RtpParameters VideoChannel::GetRtpSendParameters(uint32_t ssrc) const {
« no previous file with comments | « webrtc/pc/channel.h ('k') | webrtc/pc/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698