va: vpp: request video and alignment metas for src pool
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 2 Feb 2021 17:05:46 +0000 (18:05 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 5 Feb 2021 17:54:25 +0000 (18:54 +0100)
This is for the pool used when importing raw video frames to surfaces.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>

sys/va/gstvavpp.c

index c548793..1e71a19 100644 (file)
@@ -425,6 +425,9 @@ _create_sinkpad_bufferpool (GstCaps * caps, guint size, guint min_buffers,
       max_buffers);
   gst_buffer_pool_config_set_va_allocation_params (config, usage_hint);
   gst_buffer_pool_config_set_allocator (config, allocator, alloc_params);
+  gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
+  gst_buffer_pool_config_add_option (config,
+      GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT);
 
   if (!gst_buffer_pool_set_config (pool, config))
     gst_clear_object (&pool);