From 68bb5bfecc0d22e2cc54e20962ccc6498e4f03e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Sun, 21 May 2017 15:44:02 +0200 Subject: [PATCH] videoaggregator: Declare that it supports the video meta on input https://bugzilla.gnome.org/show_bug.cgi?id=782918 --- gst-libs/gst/video/gstvideoaggregator.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 2b3cf6fb93..11a3ef40c4 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -1897,6 +1897,15 @@ gst_video_aggregator_release_pad (GstElement * element, GstPad * pad) return; } +static gboolean +gst_video_aggregator_propose_allocation (GstAggregator * agg, + GstAggregatorPad * pad, GstQuery * decide_query, GstQuery * query) +{ + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); + + return TRUE; +} + static gboolean gst_video_aggregator_decide_allocation (GstAggregator * agg, GstQuery * query) { @@ -2180,6 +2189,7 @@ gst_video_aggregator_class_init (GstVideoAggregatorClass * klass) agg_class->negotiated_src_caps = gst_video_aggregator_default_negotiated_src_caps; agg_class->decide_allocation = gst_video_aggregator_decide_allocation; + agg_class->propose_allocation = gst_video_aggregator_propose_allocation; klass->find_best_format = gst_video_aggregator_find_best_format; klass->get_output_buffer = gst_video_aggregator_get_output_buffer;