webrtc: only check sink pads for a 'sink pads have caps' check
This commit is contained in:
parent
bd92b2f7c4
commit
00977f263a
@ -1149,15 +1149,18 @@ _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…
x
Reference in New Issue
Block a user