mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -1390,7 +1390,11 @@ _all_sinks_have_caps (GstWebRTCBin * webrtc)
|
||||||
wpad = GST_WEBRTC_BIN_PAD (l->data);
|
wpad = GST_WEBRTC_BIN_PAD (l->data);
|
||||||
if (GST_PAD_DIRECTION (l->data) == GST_PAD_SINK && !wpad->received_caps
|
if (GST_PAD_DIRECTION (l->data) == GST_PAD_SINK && !wpad->received_caps
|
||||||
&& (!wpad->trans || !wpad->trans->stopped)) {
|
&& (!wpad->trans || !wpad->trans->stopped)) {
|
||||||
goto done;
|
if (wpad->trans && wpad->trans->codec_preferences) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue