webrtc: only check sink pads for a 'sink pads have caps' check

This commit is contained in:
Matthew Waters 2018-11-27 19:24:40 +11:00
parent bd92b2f7c4
commit 00977f263a

View file

@ -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;