Commit b05fc715 authored by Harald Alvestrand's avatar Harald Alvestrand Committed by Commit Bot

Reland "Change ICE connection state on transceiver changes"

This reverts the revert
https://chromium-review.googlesource.com/c/chromium/src/+/1636231
which couldn't be reverted using "reland".

Reason for reland: Flakiness seems to have been caused by leftover
-expect files, not this patch.

TBR=hbos@chromium.org

Bug: chromium:966798
Change-Id: I450908dd3f49a8ae96bec2ba84c2812c40174e9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635811
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Reviewed-by: default avatarHarald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664669}
parent 6258645e
...@@ -2900,6 +2900,15 @@ void RTCPeerConnection::DidModifyTransceivers( ...@@ -2900,6 +2900,15 @@ void RTCPeerConnection::DidModifyTransceivers(
transceiver->receiver()->track()->Component()->Source()->SetReadyState( transceiver->receiver()->track()->Component()->Source()->SetReadyState(
MediaStreamSource::kReadyStateLive); MediaStreamSource::kReadyStateLive);
} }
// Transceiver modifications can cause changes in the set of ICE
// transports, which may affect ICE transport state.
// Note - this must be done every time the set of ICE transports happens.
// At the moment this only happens in SLD/SRD, and this function is called
// whenever these functions complete.
if (sdp_semantics_ == webrtc::SdpSemantics::kUnifiedPlan) {
UpdateIceConnectionState();
}
} }
void RTCPeerConnection::SetAssociatedMediaStreams( void RTCPeerConnection::SetAssociatedMediaStreams(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment