diff options
Diffstat (limited to 'ext/vulkan/vkdownload.c')
-rw-r--r-- | ext/vulkan/vkdownload.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/vulkan/vkdownload.c b/ext/vulkan/vkdownload.c index 897cd1f5a..1bb64b877 100644 --- a/ext/vulkan/vkdownload.c +++ b/ext/vulkan/vkdownload.c @@ -307,7 +307,7 @@ _image_to_raw_perform (gpointer impl, GstBuffer * inbuf, GstBuffer ** outbuf) }; /* *INDENT-ON* */ - fence = gst_vulkan_fence_new (raw->download->device, 0, &error); + fence = gst_vulkan_device_create_fence (raw->download->device, &error); if (!fence) goto error; @@ -320,7 +320,8 @@ _image_to_raw_perform (gpointer impl, GstBuffer * inbuf, GstBuffer ** outbuf) goto error; gst_vulkan_trash_list_add (raw->trash_list, - gst_vulkan_trash_new_mini_object_unref (fence, + gst_vulkan_trash_list_acquire (raw->trash_list, fence, + gst_vulkan_trash_mini_object_unref, GST_MINI_OBJECT_CAST (cmd_buf))); gst_vulkan_fence_unref (fence); } |