Index: talk/media/webrtc/webrtcvoiceengine.cc |
diff --git a/talk/media/webrtc/webrtcvoiceengine.cc b/talk/media/webrtc/webrtcvoiceengine.cc |
index 2f73cdd58fa56dc8cc873570ae90b1bb2b294a13..ac37425886eb40e1b9f0b0aff55f5d6c314038e3 100644 |
--- a/talk/media/webrtc/webrtcvoiceengine.cc |
+++ b/talk/media/webrtc/webrtcvoiceengine.cc |
@@ -2085,7 +2085,7 @@ bool WebRtcVoiceMediaChannel::ChangeSend(int channel, SendFlags send) { |
return true; |
} |
-bool WebRtcVoiceMediaChannel::SetAudioSend(uint32 ssrc, bool mute, |
+bool WebRtcVoiceMediaChannel::SetAudioSend(uint32 ssrc, bool enable, |
const AudioOptions* options, |
AudioRenderer* renderer) { |
// TODO(solenberg): The state change should be fully rolled back if any one of |
@@ -2093,10 +2093,10 @@ bool WebRtcVoiceMediaChannel::SetAudioSend(uint32 ssrc, bool mute, |
if (!SetLocalRenderer(ssrc, renderer)) { |
return false; |
} |
- if (!MuteStream(ssrc, mute)) { |
+ if (!MuteStream(ssrc, !enable)) { |
return false; |
} |
- if (!mute && options) { |
+ if (enable && options) { |
return SetOptions(*options); |
} |
return true; |