From: Mathieu Duponchelle Date: Tue, 21 Jan 2020 11:14:49 +0000 (+0100) Subject: webrtcbin: connect rtp funnel after updating ptmaps X-Git-Tag: 1.19.3~507^2~2389 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc185bd864a4b2b43a572ec0b24b99c60e8fba8;p=platform%2Fupstream%2Fgstreamer.git webrtcbin: connect rtp funnel after updating ptmaps We need the streams' pt maps updated before requesting pads on rtpbin, because this is what will trigger the requesting of FEC encoders, and our handler for this request looks for the payload types in the relevant stream's pt map. Fixes #1187 --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 8ecedb7..a28d914 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -4027,12 +4027,12 @@ _update_transceivers_from_sdp (GstWebRTCBin * webrtc, SDPSource source, bundle_stream = _get_or_create_transport_stream (webrtc, bundle_idx, _message_media_is_datachannel (sdp->sdp, bundle_idx)); - _connect_rtpfunnel (webrtc, bundle_idx); - g_array_set_size (bundle_stream->ptmap, 0); for (i = 0; i < gst_sdp_message_medias_len (sdp->sdp); i++) { _update_transport_ptmap_from_media (webrtc, bundle_stream, sdp->sdp, i); } + + _connect_rtpfunnel (webrtc, bundle_idx); } for (i = 0; i < gst_sdp_message_medias_len (sdp->sdp); i++) {