From 32487878d9637987b0a242f3d08b778911a96b5d Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 17 May 2022 17:07:49 +1000 Subject: [PATCH] vulkan: add some missing GAutoPtr definitions Part-of: --- .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkbuffermemory.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkcommandbuffer.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorpool.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorset.h | 2 ++ subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.h | 4 ++++ .../gst-libs/gst/vulkan/gstvkimagebufferpool.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagememory.h | 2 ++ subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkmemory.h | 2 ++ .../gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h | 2 ++ 10 files changed, 22 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbuffermemory.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbuffermemory.h index 7f5aed2d4e..8c6a416072 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbuffermemory.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbuffermemory.h @@ -139,6 +139,8 @@ struct _GstVulkanBufferMemoryAllocatorClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanBufferMemoryAllocator, gst_object_unref); + GST_VULKAN_API void gst_vulkan_buffer_memory_init_once (void); GST_VULKAN_API diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.h index 4719147068..7e86a26945 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.h @@ -76,6 +76,8 @@ struct _GstVulkanBufferPoolClass gpointer _padding[GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanBufferPool, gst_object_unref); + GST_VULKAN_API GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * device); diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkcommandbuffer.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkcommandbuffer.h index dd66039e92..d28c953363 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkcommandbuffer.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkcommandbuffer.h @@ -141,6 +141,8 @@ gst_clear_vulkan_command_buffer (GstVulkanCommandBuffer ** cmd_ptr) */ #define gst_vulkan_command_buffer_unlock(cmd) (gst_vulkan_command_pool_unlock((cmd)->pool)) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanCommandBuffer, gst_vulkan_command_buffer_unref); + GST_VULKAN_API GstVulkanCommandBuffer * gst_vulkan_command_buffer_new_wrapped (VkCommandBuffer cmd, VkCommandBufferLevel level); diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorpool.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorpool.h index 5b9a9c3802..2c131c84f9 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorpool.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorpool.h @@ -66,6 +66,8 @@ struct _GstVulkanDescriptorPoolClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanDescriptorPool, gst_object_unref); + GST_VULKAN_API GstVulkanDescriptorPool * gst_vulkan_descriptor_pool_new_wrapped (GstVulkanDevice * device, VkDescriptorPool pool, diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorset.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorset.h index d65754bbc0..3c3cf74834 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorset.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdescriptorset.h @@ -131,6 +131,8 @@ GstVulkanDescriptorSet * gst_vulkan_descriptor_set_new_wrapped (GstVulk guint n_layouts, GstVulkanHandle ** layouts); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanDescriptorSet, gst_vulkan_descriptor_set_unref); + G_END_DECLS #endif /* _GST_VULKAN_DESCRIPTOR_SET_H_ */ diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.h index af52e59947..30e4226882 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.h @@ -93,6 +93,8 @@ gst_vulkan_fence_unref (GstVulkanFence * fence) gst_mini_object_unref (GST_MINI_OBJECT_CAST (fence)); } +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanFence, gst_vulkan_fence_unref); + GST_VULKAN_API GType gst_vulkan_fence_cache_get_type (void); #define GST_TYPE_VULKAN_FENCE_CACHE (gst_vulkan_fence_cache_get_type()) @@ -130,6 +132,8 @@ struct _GstVulkanFenceCacheClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanFenceCache, gst_object_unref); + GstVulkanFenceCache * gst_vulkan_fence_cache_new (GstVulkanDevice * device); /** diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.h index 3f814e8514..f0d3b6a93e 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagebufferpool.h @@ -75,6 +75,8 @@ struct _GstVulkanImageBufferPoolClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanImageBufferPool, gst_object_unref); + GST_VULKAN_API GstBufferPool *gst_vulkan_image_buffer_pool_new (GstVulkanDevice * device); diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagememory.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagememory.h index ecc11e61de..ac4ba2f648 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagememory.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkimagememory.h @@ -158,6 +158,8 @@ struct _GstVulkanImageMemoryAllocatorClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanImageMemoryAllocator, gst_object_unref); + GST_VULKAN_API void gst_vulkan_image_memory_init_once (void); GST_VULKAN_API diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkmemory.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkmemory.h index 558e206b7d..129b377244 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkmemory.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkmemory.h @@ -123,6 +123,8 @@ struct _GstVulkanMemoryAllocatorClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanMemoryAllocator, gst_object_unref); + GST_VULKAN_API void gst_vulkan_memory_init_once (void); GST_VULKAN_API diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h index e4fdfbadec..e3457295cc 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h @@ -83,6 +83,8 @@ struct _GstVulkanVideoFilterClass gpointer _reserved [GST_PADDING]; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanVideoFilter, gst_object_unref); + G_END_DECLS #endif