mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
vkdescriptor: set the GError on the 'too many allocations' case
This commit is contained in:
parent
982e06ef87
commit
4b491182ae
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue