From 09c65fe5346c137f266cb0fa9655961e7b07546a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 31 Mar 2021 11:33:21 -0400 Subject: [PATCH] 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: --- ext/webrtc/gstwebrtcbin.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index cc4ad55da3..c92e4ad724 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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,