Add backwards compatibilty to peer codecs config.

This is a small follow-up to
https://webrtc-review.googlesource.com/c/src/+/226220 in order to make
the switch incremental.

No-Try: True
Bug: b/192821182
Change-Id: I2e36c74eb97b5ee30cbd5c383eebff73e9389408
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226221
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Andrey Logvin <landrey@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34478}
This commit is contained in:
Mirko Bonadei
2021-07-15 16:08:23 +02:00
committed by WebRTC LUCI CQ
parent f48c3736e0
commit 8d60ca9209

View File

@ -100,6 +100,9 @@ void SetDefaultValuesForMissingParams(
p->video_codecs.push_back(
PeerConnectionE2EQualityTestFixture::VideoCodecConfig(
cricket::kVp8CodecName));
run_params->video_codecs = {
PeerConnectionE2EQualityTestFixture::VideoCodecConfig(
cricket::kVp8CodecName)};
}
} else {
RTC_CHECK(run_params->video_codecs.empty())