From 4d34fe7617e44ba6ebd059882dc6a13792dcef02 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 27 Nov 2018 19:25:51 +1100 Subject: [PATCH] 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 --- ext/webrtc/gstwebrtcbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index e0411f8618..06c2eb4d4e 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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;