From 4b491182ae03ab6186f9609b01691134423dd442 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 11 Nov 2019 10:33:23 +1100 Subject: [PATCH] vkdescriptor: set the GError on the 'too many allocations' case --- gst-libs/gst/vulkan/gstvkdescriptorpool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/vulkan/gstvkdescriptorpool.c b/gst-libs/gst/vulkan/gstvkdescriptorpool.c index 85c7d22353..aaea1b8cf2 100644 --- a/gst-libs/gst/vulkan/gstvkdescriptorpool.c +++ b/gst-libs/gst/vulkan/gstvkdescriptorpool.c @@ -217,6 +217,8 @@ gst_vulkan_descriptor_pool_create (GstVulkanDescriptorPool * pool, if (priv->outstanding >= priv->max_sets) { g_warning ("%s: Attempt was made to allocate more descriptor sets than are " "available", GST_OBJECT_NAME (pool)); + g_set_error (error, GST_VULKAN_ERROR, VK_ERROR_TOO_MANY_OBJECTS, + "Attempt was made to allocate more descriptor sets than are available"); priv->outstanding--; GST_OBJECT_UNLOCK (pool); return NULL;