vkdescriptor: set the GError on the 'too many allocations' case

This commit is contained in:
Matthew Waters 2019-11-11 10:33:23 +11:00
parent 982e06ef87
commit 4b491182ae

View file

@ -217,6 +217,8 @@ gst_vulkan_descriptor_pool_create (GstVulkanDescriptorPool * pool,
if (priv->outstanding >= priv->max_sets) { if (priv->outstanding >= priv->max_sets) {
g_warning ("%s: Attempt was made to allocate more descriptor sets than are " g_warning ("%s: Attempt was made to allocate more descriptor sets than are "
"available", GST_OBJECT_NAME (pool)); "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--; priv->outstanding--;
GST_OBJECT_UNLOCK (pool); GST_OBJECT_UNLOCK (pool);
return NULL; return NULL;