Index: webrtc/media/engine/webrtcvideoengine2.cc |
diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc |
index e34056d905257371b6f9c0db015f38a3bdcf3a85..2d915d9ed3cf824ac4c7f81d867d0d9529df6ea6 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2.cc |
+++ b/webrtc/media/engine/webrtcvideoengine2.cc |
@@ -1800,10 +1800,10 @@ void WebRtcVideoChannel2::WebRtcVideoSendStream::SetSendParameters( |
// Set codecs and options. |
if (params.codec) { |
SetCodec(*params.codec); |
- return; |
+ recreate_stream = false; // SetCodec has already recreated the stream. |
} else if (params.conference_mode && parameters_.codec_settings) { |
SetCodec(*parameters_.codec_settings); |
- return; |
+ recreate_stream = false; // SetCodec has already recreated the stream. |
} |
if (recreate_stream) { |
LOG(LS_INFO) |