webrtcbin: Associate the stream with a new transceiver

Otherwise, this newly created transceiver has no stream and it
aborts later when it tries to connect the input pad.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
This commit is contained in:
Olivier Crête 2021-03-31 11:33:21 -04:00
parent 83e546f935
commit 09c65fe534

View file

@ -4680,9 +4680,10 @@ _update_transceivers_from_sdp (GstWebRTCBin * webrtc, SDPSource source,
* that calls to setDirection will change the value. Nothing about
* a default value when the transceiver is created internally */
if (!trans) {
trans =
GST_WEBRTC_RTP_TRANSCEIVER (_create_webrtc_transceiver (webrtc,
_get_direction_from_media (media), i));
WebRTCTransceiver *t = _create_webrtc_transceiver (webrtc,
_get_direction_from_media (media), i);
webrtc_transceiver_set_transport (t, stream);
trans = GST_WEBRTC_RTP_TRANSCEIVER (t);
}
_update_transceiver_from_sdp_media (webrtc, sdp->sdp, i, stream,