webrtcbin: consider pads with trans->codec_preferences ready

.. when determining whether we can emit on-negotiation-needed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1233>
This commit is contained in:
Mathieu Duponchelle 2021-10-18 15:23:48 +02:00 committed by GStreamer Marge Bot
parent 9d5b23ff58
commit a9506f20d3

View file

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