summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vulkan
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-11-11 10:33:23 +1100
committerMatthew Waters <matthew@centricular.com>2019-11-11 11:04:59 +1100
commit4b491182ae03ab6186f9609b01691134423dd442 (patch)
tree1ce13800edc617fa65090f7eb88d64da9ac38121 /gst-libs/gst/vulkan
parent982e06ef87a756e784d16cd9e1d6b8ac32f0b232 (diff)
downloadgstreamer-plugins-bad-4b491182ae03ab6186f9609b01691134423dd442.tar.gz
vkdescriptor: set the GError on the 'too many allocations' case
Diffstat (limited to 'gst-libs/gst/vulkan')
-rw-r--r--gst-libs/gst/vulkan/gstvkdescriptorpool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/vulkan/gstvkdescriptorpool.c b/gst-libs/gst/vulkan/gstvkdescriptorpool.c
index 85c7d2235..aaea1b8cf 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;