| Index: webrtc/pc/channelmanager.cc
|
| diff --git a/webrtc/pc/channelmanager.cc b/webrtc/pc/channelmanager.cc
|
| index 06475e9eaa26f13ec0883a1c8e8654675cbf8e9e..255730a0ba4a9da381337c4c589b7f682b06205b 100644
|
| --- a/webrtc/pc/channelmanager.cc
|
| +++ b/webrtc/pc/channelmanager.cc
|
| @@ -141,13 +141,13 @@ void ChannelManager::GetSupportedVideoCodecs(
|
| std::vector<VideoCodec>* codecs) const {
|
| codecs->clear();
|
|
|
| - std::vector<VideoCodec>::const_iterator it;
|
| - for (it = media_engine_->video_codecs().begin();
|
| - it != media_engine_->video_codecs().end(); ++it) {
|
| - if (!enable_rtx_ && _stricmp(kRtxCodecName, it->name.c_str()) == 0) {
|
| + std::vector<VideoCodec> video_codecs = media_engine_->video_codecs();
|
| + for (const auto& video_codec : video_codecs) {
|
| + if (!enable_rtx_ &&
|
| + _stricmp(kRtxCodecName, video_codec.name.c_str()) == 0) {
|
| continue;
|
| }
|
| - codecs->push_back(*it);
|
| + codecs->push_back(video_codec);
|
| }
|
| }
|
|
|
|
|