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

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

Issue 1311533009: - Rename VoiceChannel::MuteStream() -> SetAudioSend() (incl. media channel) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@lj_remove_typingmonitor_files
Patch Set: typo in comment 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 082e21437b1376d3a3ab6d0b12b5811ca0bf2df7..179d793f5a04e9bdd5155f79652f5e6e7725c6dd 100644
--- a/talk/app/webrtc/webrtcsession.cc
+++ b/talk/app/webrtc/webrtcsession.cc
@@ -1182,20 +1182,9 @@ void WebRtcSession::SetAudioSend(uint32 ssrc, bool enable,
LOG(LS_ERROR) << "SetAudioSend: No audio channel exists.";
return;
}
- if (!voice_channel_->SetLocalRenderer(ssrc, renderer)) {
- // SetRenderer() can fail if the ssrc does not match any send channel.
+ if (!voice_channel_->SetAudioSend(ssrc, !enable, &options, renderer)) {
LOG(LS_ERROR) << "SetAudioSend: ssrc is incorrect: " << ssrc;
- return;
- }
- if (!voice_channel_->MuteStream(ssrc, !enable)) {
- // 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.
- ASSERT(enable == false);
- return;
}
- if (enable)
- voice_channel_->SetChannelOptions(options);
}
void WebRtcSession::SetAudioPlayoutVolume(uint32 ssrc, double volume) {
@@ -1254,15 +1243,12 @@ void WebRtcSession::SetVideoSend(uint32 ssrc, bool enable,
LOG(LS_WARNING) << "SetVideoSend: No video channel exists.";
return;
}
- if (!video_channel_->MuteStream(ssrc, !enable)) {
+ 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.
ASSERT(enable == false);
- return;
}
- if (enable && options)
- video_channel_->SetChannelOptions(*options);
}
bool WebRtcSession::CanInsertDtmf(const std::string& track_id) {
« 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