From: Olivier CrĂȘte Date: Fri, 26 Mar 2021 19:57:15 +0000 (-0400) Subject: webrtcbin: Remember if a transceiver had a forced m-line X-Git-Tag: 1.19.3~507^2~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed1f0f33a236a3cc83f522b628d259b14d05cc9c;p=platform%2Fupstream%2Fgstreamer.git webrtcbin: Remember if a transceiver had a forced m-line Part-of: --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 4d5e921..a554a7b 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -6281,6 +6281,12 @@ gst_webrtc_bin_request_new_pad (GstElement * element, GstPadTemplate * templ, gst_object_ref (pad)); _add_pad (webrtc, pad); + if (lock_mline) { + WebRTCTransceiver *wtrans = WEBRTC_TRANSCEIVER (trans); + wtrans->mline_locked = TRUE; + trans->mline = serial; + } + return GST_PAD (pad); } diff --git a/ext/webrtc/webrtctransceiver.h b/ext/webrtc/webrtctransceiver.h index 2f65b75..3a2115fd 100644 --- a/ext/webrtc/webrtctransceiver.h +++ b/ext/webrtc/webrtctransceiver.h @@ -48,6 +48,8 @@ struct _WebRTCTransceiver gboolean do_nack; GstCaps *last_configured_caps; + + gboolean mline_locked; }; struct _WebRTCTransceiverClass