mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
funnel: Proxy CAPS and ALLOCATION queries
This commit is contained in:
parent
1f71f191be
commit
5937199726
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue