webrtcbin: Remember if a transceiver had a forced m-line

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
This commit is contained in:
Olivier Crête 2021-03-26 15:57:15 -04:00
parent 92d356d4b0
commit ed1f0f33a2
2 changed files with 8 additions and 0 deletions

View file

@ -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);
}

View file

@ -48,6 +48,8 @@ struct _WebRTCTransceiver
gboolean do_nack;
GstCaps *last_configured_caps;
gboolean mline_locked;
};
struct _WebRTCTransceiverClass