mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
webrtc: only check sink pads for a 'sink pads have caps' check
This commit is contained in:
parent
bd92b2f7c4
commit
00977f263a
1 changed files with 5 additions and 2 deletions
|
@ -1149,14 +1149,17 @@ _all_sinks_have_caps (GstWebRTCBin * webrtc)
|
||||||
for (; l; l = g_list_next (l)) {
|
for (; l; l = g_list_next (l)) {
|
||||||
if (!GST_IS_WEBRTC_BIN_PAD (l->data))
|
if (!GST_IS_WEBRTC_BIN_PAD (l->data))
|
||||||
continue;
|
continue;
|
||||||
if (!GST_WEBRTC_BIN_PAD (l->data)->received_caps)
|
if (GST_PAD_DIRECTION (l->data) == GST_PAD_SINK
|
||||||
|
&& !GST_WEBRTC_BIN_PAD (l->data)->received_caps) {
|
||||||
goto done;
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
l = webrtc->priv->pending_pads;
|
l = webrtc->priv->pending_pads;
|
||||||
for (; l; l = g_list_next (l)) {
|
for (; l; l = g_list_next (l)) {
|
||||||
if (!GST_IS_WEBRTC_BIN_PAD (l->data))
|
if (!GST_IS_WEBRTC_BIN_PAD (l->data)) {
|
||||||
goto done;
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue