Commit 4d34fe76 authored by Matthew Waters's avatar Matthew Waters 🍧

webrtc: also check for a null mid to signify an unassociated transceiver

We always give our transceivers an mline on creation so that check is
not useful by itself
parent 00977f26
......@@ -1222,7 +1222,7 @@ _check_if_negotiation_is_needed (GstWebRTCBin * webrtc)
const GstSDPMedia *media;
GstWebRTCRTPTransceiverDirection local_dir, remote_dir;
if (trans->mline == -1) {
if (trans->mline == -1 || trans->mid == NULL) {
GST_LOG_OBJECT (webrtc, "unassociated transceiver %i %" GST_PTR_FORMAT,
i, trans);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment