mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
templatematch: mark pads as proxy caps
Allows negotiation to happen properly
This commit is contained in:
parent
1b5483eef9
commit
aa5e25820b
1 changed files with 2 additions and 0 deletions
|
@ -171,8 +171,10 @@ gst_template_match_init (GstTemplateMatch * filter)
|
||||||
GST_DEBUG_FUNCPTR (gst_template_match_handle_sink_event));
|
GST_DEBUG_FUNCPTR (gst_template_match_handle_sink_event));
|
||||||
gst_pad_set_chain_function (filter->sinkpad,
|
gst_pad_set_chain_function (filter->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_template_match_chain));
|
GST_DEBUG_FUNCPTR (gst_template_match_chain));
|
||||||
|
GST_PAD_SET_PROXY_CAPS (filter->sinkpad);
|
||||||
|
|
||||||
filter->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
|
filter->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
|
||||||
|
GST_PAD_SET_PROXY_CAPS (filter->srcpad);
|
||||||
|
|
||||||
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
|
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
|
||||||
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
|
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
|
||||||
|
|
Loading…
Reference in a new issue