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
This commit is contained in:
Matthew Waters 2018-11-27 19:25:51 +11:00
parent 00977f263a
commit 4d34fe7617

View file

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