mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
videofilter: fix for decide_allocation changes
Chain up to parent.
This commit is contained in:
parent
5bad1eaa24
commit
91c587af22
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue