From 593719972677d48e52dbb9e95df06756afaaa6bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Dec 2013 11:37:53 +0100 Subject: [PATCH] funnel: Proxy CAPS and ALLOCATION queries --- plugins/elements/gstfunnel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/elements/gstfunnel.c b/plugins/elements/gstfunnel.c index af3a1ac..11dac55 100644 --- a/plugins/elements/gstfunnel.c +++ b/plugins/elements/gstfunnel.c @@ -120,6 +120,9 @@ gst_funnel_init (GstFunnel * funnel) funnel->srcpad = gst_pad_new_from_static_template (&funnel_src_template, "src"); gst_pad_use_fixed_caps (funnel->srcpad); + + GST_OBJECT_FLAG_SET (funnel->srcpad, GST_PAD_FLAG_PROXY_CAPS); + gst_element_add_pad (GST_ELEMENT (funnel), funnel->srcpad); } @@ -138,6 +141,9 @@ gst_funnel_request_new_pad (GstElement * element, GstPadTemplate * templ, gst_pad_set_event_function (sinkpad, GST_DEBUG_FUNCPTR (gst_funnel_sink_event)); + GST_OBJECT_FLAG_SET (sinkpad, GST_PAD_FLAG_PROXY_CAPS); + GST_OBJECT_FLAG_SET (sinkpad, GST_PAD_FLAG_PROXY_ALLOCATION); + gst_pad_set_active (sinkpad, TRUE); gst_element_add_pad (element, sinkpad); -- 2.7.4