funnel: Proxy CAPS and ALLOCATION queries
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Dec 2013 10:37:53 +0000 (11:37 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 20 Dec 2013 10:38:18 +0000 (11:38 +0100)
plugins/elements/gstfunnel.c

index af3a1ac..11dac55 100644 (file)
@@ -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);