From a9506f20d35be9557f9cd5c16c4189f7deed0f57 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 18 Oct 2021 15:23:48 +0200 Subject: [PATCH] webrtcbin: consider pads with trans->codec_preferences ready .. when determining whether we can emit on-negotiation-needed Part-of: --- subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c index 3fedee6..a241639 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c @@ -1390,7 +1390,11 @@ _all_sinks_have_caps (GstWebRTCBin * webrtc) wpad = GST_WEBRTC_BIN_PAD (l->data); if (GST_PAD_DIRECTION (l->data) == GST_PAD_SINK && !wpad->received_caps && (!wpad->trans || !wpad->trans->stopped)) { - goto done; + if (wpad->trans && wpad->trans->codec_preferences) { + continue; + } else { + goto done; + } } } -- 2.7.4