From ed1f0f33a236a3cc83f522b628d259b14d05cc9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 26 Mar 2021 15:57:15 -0400 Subject: [PATCH] webrtcbin: Remember if a transceiver had a forced m-line Part-of: --- ext/webrtc/gstwebrtcbin.c | 6 ++++++ ext/webrtc/webrtctransceiver.h | 2 ++ 2 files changed, 8 insertions(+) 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 -- 2.7.4