| Index: webrtc/media/engine/webrtcvideoengine2.cc
|
| diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc
|
| index 40f486dc0f9aa62291e046d952c89e9adad760ef..4301bd0a9369634604331c1dc307ff049f06495b 100644
|
| --- a/webrtc/media/engine/webrtcvideoengine2.cc
|
| +++ b/webrtc/media/engine/webrtcvideoengine2.cc
|
| @@ -2278,19 +2278,20 @@ void WebRtcVideoChannel2::WebRtcVideoReceiveStream::SetRecvParameters(
|
| }
|
|
|
| void WebRtcVideoChannel2::WebRtcVideoReceiveStream::RecreateWebRtcStream() {
|
| + if (stream_) {
|
| + call_->DestroyVideoReceiveStream(stream_);
|
| + stream_ = nullptr;
|
| + }
|
| if (flexfec_stream_) {
|
| call_->DestroyFlexfecReceiveStream(flexfec_stream_);
|
| flexfec_stream_ = nullptr;
|
| }
|
| - if (stream_) {
|
| - call_->DestroyVideoReceiveStream(stream_);
|
| - }
|
| - stream_ = call_->CreateVideoReceiveStream(config_.Copy());
|
| - stream_->Start();
|
| if (IsFlexfecFieldTrialEnabled() && flexfec_config_.IsCompleteAndEnabled()) {
|
| flexfec_stream_ = call_->CreateFlexfecReceiveStream(flexfec_config_);
|
| flexfec_stream_->Start();
|
| }
|
| + stream_ = call_->CreateVideoReceiveStream(config_.Copy());
|
| + stream_->Start();
|
| }
|
|
|
| void WebRtcVideoChannel2::WebRtcVideoReceiveStream::ClearDecoders(
|
|
|