| Index: webrtc/media/engine/webrtcvideoengine2.cc
|
| diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc
|
| index c6bdafee5a336666a4fd46f5aab78c0590525105..3844e3bc31a4c4ab80936712d0ac7514c9cb3571 100644
|
| --- a/webrtc/media/engine/webrtcvideoengine2.cc
|
| +++ b/webrtc/media/engine/webrtcvideoengine2.cc
|
| @@ -1668,6 +1668,14 @@ WebRtcVideoChannel2::WebRtcVideoSendStream::GetSsrcs() const {
|
| void WebRtcVideoChannel2::WebRtcVideoSendStream::SetOptions(
|
| const VideoOptions& options) {
|
| rtc::CritScope cs(&lock_);
|
| +
|
| + VideoOptions old_options = parameters_.options;
|
| + parameters_.options.SetAll(options);
|
| + // No need to do anything if the options aren't changing.
|
| + if (parameters_.options == old_options) {
|
| + return;
|
| + }
|
| +
|
| if (parameters_.codec_settings) {
|
| LOG(LS_INFO) << "SetCodecAndOptions because of SetOptions; options="
|
| << options.ToString();
|
|
|