From 53596c2fc645ade3a40a99687eb81a6d3e221515 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 23 May 2022 11:24:04 +1000 Subject: [PATCH] vkfullscreenaud: create the vulkan command pool upfront Allows outside to reuse the same command buffer pool much more easily. Part-of: --- .../gst-libs/gst/vulkan/gstvkfullscreenquad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfullscreenquad.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfullscreenquad.c index e3eadfaf5e..34a60c1b7a 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfullscreenquad.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfullscreenquad.c @@ -783,11 +783,16 @@ GstVulkanFullScreenQuad * gst_vulkan_full_screen_quad_new (GstVulkanQueue * queue) { GstVulkanFullScreenQuad *self; + GError *error = NULL; g_return_val_if_fail (GST_IS_VULKAN_QUEUE (queue), NULL); self = g_object_new (GST_TYPE_VULKAN_FULL_SCREEN_QUAD, NULL); self->queue = gst_object_ref (queue); + self->cmd_pool = gst_vulkan_queue_create_command_pool (queue, &error); + if (!self->cmd_pool) + GST_WARNING_OBJECT (self, "Failed to create command pool: %s", + error->message); gst_object_ref_sink (self);