Index: talk/media/webrtc/webrtcvideoengine2.cc |
diff --git a/talk/media/webrtc/webrtcvideoengine2.cc b/talk/media/webrtc/webrtcvideoengine2.cc |
index 0ee1d7b85b576d0a964fd1b49523af71cf89187d..b94d24d5987222fc4149dfc3633517ac7851fc5c 100644 |
--- a/talk/media/webrtc/webrtcvideoengine2.cc |
+++ b/talk/media/webrtc/webrtcvideoengine2.cc |
@@ -1036,14 +1036,14 @@ bool WebRtcVideoChannel2::SetSend(bool send) { |
return true; |
} |
-bool WebRtcVideoChannel2::SetVideoSend(uint32 ssrc, bool mute, |
+bool WebRtcVideoChannel2::SetVideoSend(uint32 ssrc, bool enable, |
const VideoOptions* options) { |
// TODO(solenberg): The state change should be fully rolled back if any one of |
// these calls fail. |
- if (!MuteStream(ssrc, mute)) { |
+ if (!MuteStream(ssrc, !enable)) { |
return false; |
} |
- if (!mute && options) { |
+ if (enable && options) { |
return SetOptions(*options); |
} else { |
return true; |