Commit 15c559c0 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

test

parent 2824fb76
......@@ -4370,6 +4370,7 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query)
gboolean can_share_own_pool, pushing_from_our_pool = FALSE;
GstAllocator *allocator = NULL;
GstAllocationParams params = { 0 };
guint video_idx;
GST_DEBUG_OBJECT (obj->dbg_obj, "decide allocation");
......@@ -4400,7 +4401,15 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query)
GST_PTR_FORMAT, size, min, max, pool);
has_video_meta =
gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);
gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE,
&video_idx);
if (has_video_meta) {
const GstStructure *params;
gst_query_parse_nth_allocation_meta (query, video_idx, &params);
g_print ("xxxxxxxxx %s\n", gst_structure_to_string (params));
}
can_share_own_pool = (has_video_meta || !obj->need_video_meta);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment