From 1ede067d2760d6c27780f129ccba7137ced5d998 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 2 Mar 2012 17:34:50 +0100 Subject: [PATCH] videofilter: always chain up to parent propose_allocation --- gst-libs/gst/video/gstvideofilter.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index 248c482eee..ec4e69292f 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -62,10 +62,13 @@ gst_video_filter_propose_allocation (GstBaseTransform * trans, gboolean need_pool; guint size; - /* we're passthrough, let the parent implementation hande things */ + if (!GST_BASE_TRANSFORM_CLASS (parent_class)->propose_allocation (trans, + decide_query, query)) + return FALSE; + + /* passthrough, we're done */ if (decide_query == NULL) - return GST_BASE_TRANSFORM_CLASS (parent_class)->propose_allocation (trans, - decide_query, query); + return TRUE; gst_query_parse_allocation (query, &caps, &need_pool);