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:
parent
9d5b23ff58
commit
a9506f20d3
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user