mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
83e546f935
commit
09c65fe534
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue