From: Wim Taymans Date: Wed, 6 Nov 2013 09:15:59 +0000 (+0100) Subject: valve: proxy caps and allocation X-Git-Tag: 1.3.1~337 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=058533ff9f703c0119a3c5c8f35e710c080cab44;p=platform%2Fupstream%2Fgstreamer.git valve: proxy caps and allocation Proxy the caps queries on the srcpad as well. Proxy the allocation query on the sinkpad. --- diff --git a/plugins/elements/gstvalve.c b/plugins/elements/gstvalve.c index 54a9038..97e2a49 100644 --- a/plugins/elements/gstvalve.c +++ b/plugins/elements/gstvalve.c @@ -120,6 +120,7 @@ gst_valve_init (GstValve * valve) GST_DEBUG_FUNCPTR (gst_valve_event)); gst_pad_set_query_function (valve->srcpad, GST_DEBUG_FUNCPTR (gst_valve_query)); + GST_PAD_SET_PROXY_CAPS (valve->srcpad); gst_element_add_pad (GST_ELEMENT (valve), valve->srcpad); valve->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink"); @@ -130,6 +131,7 @@ gst_valve_init (GstValve * valve) gst_pad_set_query_function (valve->sinkpad, GST_DEBUG_FUNCPTR (gst_valve_query)); GST_PAD_SET_PROXY_CAPS (valve->sinkpad); + GST_PAD_SET_PROXY_ALLOCATION (valve->sinkpad); gst_element_add_pad (GST_ELEMENT (valve), valve->sinkpad); }