funnel: Proxy CAPS and ALLOCATION queries

This commit is contained in:
Sebastian Dröge 2013-12-20 11:37:53 +01:00
parent 1c7809bc0d
commit 7e62ff2dc6

View 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);