diff options
author | Steve Anton <steveanton@webrtc.org> | 2018-03-29 12:37:21 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2018-03-29 20:22:28 +0000 |
commit | 003930a3ce40c8d0642403d5c91b7b8d2714e732 (patch) | |
tree | 3cf627c2f41fd9b9e60c48341978240ff52afafd /audio | |
parent | 44c608a7a711fad2f9e55fae154516cc50d47d50 (diff) | |
download | webrtc-003930a3ce40c8d0642403d5c91b7b8d2714e732.tar.gz |
Fix MID not always getting set with audio
Bug: webrtc:4050
Change-Id: I543a9f70c6c7fd10cd177ce16eba6c335db367ec
Reviewed-on: https://webrtc-review.googlesource.com/65020
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Zhi Huang <zhihuang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22681}
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_send_stream.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/audio_send_stream.cc b/audio/audio_send_stream.cc index 4417af3e3b..cf02388580 100644 --- a/audio/audio_send_stream.cc +++ b/audio/audio_send_stream.cc @@ -263,8 +263,9 @@ void AudioSendStream::ConfigureStream( } // MID RTP header extension. - if ((first_time || new_ids.mid != old_ids.mid) && new_ids.mid != 0 && - !new_config.rtp.mid.empty()) { + if ((first_time || new_ids.mid != old_ids.mid || + new_config.rtp.mid != old_config.rtp.mid) && + new_ids.mid != 0 && !new_config.rtp.mid.empty()) { channel_proxy->SetMid(new_config.rtp.mid, new_ids.mid); } |