videofilter: always chain up to parent propose_allocation

This commit is contained in:
Wim Taymans 2012-03-02 17:34:50 +01:00
parent 5595c0a7df
commit 1ede067d27

View file

@ -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);