From 91c587af228de91c2cddc73a8da311c0c16b08a5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 1 Mar 2012 17:34:28 +0100 Subject: [PATCH] videofilter: fix for decide_allocation changes Chain up to parent. --- gst-libs/gst/video/gstvideofilter.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index 97bda075bf..248c482eee 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -53,7 +53,7 @@ G_DEFINE_ABSTRACT_TYPE (GstVideoFilter, gst_video_filter, /* Answer the allocation query downstream. */ static gboolean gst_video_filter_propose_allocation (GstBaseTransform * trans, - gboolean passthrough, GstQuery * query) + GstQuery * decide_query, GstQuery * query) { GstVideoFilter *filter = GST_VIDEO_FILTER_CAST (trans); GstVideoInfo info; @@ -63,9 +63,9 @@ gst_video_filter_propose_allocation (GstBaseTransform * trans, guint size; /* we're passthrough, let the parent implementation hande things */ - if (passthrough) + if (decide_query == NULL) return GST_BASE_TRANSFORM_CLASS (parent_class)->propose_allocation (trans, - passthrough, query); + decide_query, query); gst_query_parse_allocation (query, &caps, &need_pool); @@ -124,7 +124,8 @@ gst_video_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query) GST_BUFFER_POOL_OPTION_VIDEO_META); gst_buffer_pool_set_config (pool, config); } - return TRUE; + return GST_BASE_TRANSFORM_CLASS (parent_class)->decide_allocation (trans, + query); }