mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
videoaggregator: Declare that it supports the video meta on input
https://bugzilla.gnome.org/show_bug.cgi?id=782918
This commit is contained in:
parent
1a2df0400d
commit
68bb5bfecc
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue