Don't configure video codec switching if no video stream has been created.
Bug: none Change-Id: I8e74fefed1e902c35064700f826b8f565e18c704 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159800 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29798}
This commit is contained in:
parent
bb0aac27e3
commit
01294f0e29
@ -4147,8 +4147,11 @@ RTCError PeerConnection::SetConfiguration(
|
||||
}
|
||||
|
||||
if (modified_config.allow_codec_switching.has_value()) {
|
||||
video_media_channel()->SetVideoCodecSwitchingEnabled(
|
||||
*modified_config.allow_codec_switching);
|
||||
cricket::VideoMediaChannel* video_channel = video_media_channel();
|
||||
if (video_channel) {
|
||||
video_channel->SetVideoCodecSwitchingEnabled(
|
||||
*modified_config.allow_codec_switching);
|
||||
}
|
||||
}
|
||||
|
||||
configuration_ = modified_config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user