From 00977f263abe4cd953be2e0d9cfb7f9560f2ccf4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 27 Nov 2018 19:24:40 +1100 Subject: [PATCH] webrtc: only check sink pads for a 'sink pads have caps' check --- ext/webrtc/gstwebrtcbin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index fa07ed4..e0411f8 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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; -- 2.7.4