From aa5e25820b0a721580b5d4054477345f66352bb8 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 28 Jul 2014 13:10:35 -0300 Subject: [PATCH] templatematch: mark pads as proxy caps Allows negotiation to happen properly --- ext/opencv/gsttemplatematch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/opencv/gsttemplatematch.c b/ext/opencv/gsttemplatematch.c index bfd0be83ec..1256db8607 100644 --- a/ext/opencv/gsttemplatematch.c +++ b/ext/opencv/gsttemplatematch.c @@ -171,8 +171,10 @@ gst_template_match_init (GstTemplateMatch * filter) GST_DEBUG_FUNCPTR (gst_template_match_handle_sink_event)); gst_pad_set_chain_function (filter->sinkpad, 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"); + GST_PAD_SET_PROXY_CAPS (filter->srcpad); gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad); gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);