From: Thiago Santos Date: Mon, 28 Jul 2014 16:10:35 +0000 (-0300) Subject: templatematch: mark pads as proxy caps X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~12^2~2^2~298 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bdb536eec8d0685979a8d9509978cf709c4f01f;p=platform%2Fupstream%2Fgstreamer.git templatematch: mark pads as proxy caps Allows negotiation to happen properly --- diff --git a/ext/opencv/gsttemplatematch.c b/ext/opencv/gsttemplatematch.c index 603fd53..1fb8e68 100644 --- a/ext/opencv/gsttemplatematch.c +++ b/ext/opencv/gsttemplatematch.c @@ -169,8 +169,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);