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

Unified Diff: talk/app/webrtc/webrtcsession.cc

Issue 1378513003: Change 'mute' parameter of MediaChannel::SetAudioSend()/SetVideoSend() to 'enable'. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 | « no previous file | talk/media/base/fakemediaengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/webrtcsession.cc
diff --git a/talk/app/webrtc/webrtcsession.cc b/talk/app/webrtc/webrtcsession.cc
index 7241abf3cda5cdfc8e2b6052daba4a3b4d8d25d2..06b7f6bc21318d4dd3dd860e506b3444fd9f2cb2 100644
--- a/talk/app/webrtc/webrtcsession.cc
+++ b/talk/app/webrtc/webrtcsession.cc
@@ -1258,7 +1258,7 @@ void WebRtcSession::SetAudioSend(uint32 ssrc, bool enable,
LOG(LS_ERROR) << "SetAudioSend: No audio channel exists.";
return;
}
- if (!voice_channel_->SetAudioSend(ssrc, !enable, &options, renderer)) {
+ if (!voice_channel_->SetAudioSend(ssrc, enable, &options, renderer)) {
LOG(LS_ERROR) << "SetAudioSend: ssrc is incorrect: " << ssrc;
}
}
@@ -1319,7 +1319,7 @@ void WebRtcSession::SetVideoSend(uint32 ssrc, bool enable,
LOG(LS_WARNING) << "SetVideoSend: No video channel exists.";
return;
}
- if (!video_channel_->SetVideoSend(ssrc, !enable, options)) {
+ if (!video_channel_->SetVideoSend(ssrc, enable, options)) {
// Allow that MuteStream fail if |enable| is false but assert otherwise.
// This in the normal case when the underlying media channel has already
// been deleted.
« no previous file with comments | « no previous file | talk/media/base/fakemediaengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698