mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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)) {
|
||||
if (!GST_IS_WEBRTC_BIN_PAD (l->data))
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
l = webrtc->priv->pending_pads;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
res = TRUE;
|
||||
|
|
Loading…
Reference in a new issue