Commit 00977f26 authored by Matthew Waters's avatar Matthew Waters 🍧

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

parent bd92b2f7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment