From c159e40a9fdfd0dc27b1aa6789ab87f7f89825fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 21 Mar 2023 14:59:52 +0100 Subject: [PATCH] vulkan: silence gobject-instrospection warnings According with gi annotations [1] the "optional" annotation must be only for (out) or (inout) parameters. 1. https://gi.readthedocs.io/en/latest/annotations/giannotations.html Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.c | 2 +- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c | 2 +- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c | 2 +- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkutils.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.c index 1cd308b3ed..b0cdcb4b0e 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkfence.c @@ -87,7 +87,7 @@ gst_vulkan_fence_free (GstVulkanFence * fence) /** * gst_vulkan_fence_new: * @device: the parent #GstVulkanDevice - * @error: (optional): a #GError for the failure condition + * @error: (out) (optional): a #GError for the failure condition * * Returns: a new #GstVulkanFence or %NULL on error * diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c index cf6a65a192..38d891b967 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c @@ -1095,7 +1095,7 @@ gst_vulkan_instance_get_proc_address (GstVulkanInstance * instance, /** * gst_vulkan_instance_create_device: * @instance: a #GstVulkanInstance - * @error: (optional): a #GError + * @error: (out) (optional): a #GError * * Returns: (transfer full): a new #GstVulkanDevice * diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c index 4e463ec33e..7a1231e1c7 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c @@ -112,7 +112,7 @@ gst_vulkan_queue_get_device (GstVulkanQueue * queue) /** * gst_vulkan_queue_create_command_pool: * @queue: a #GstVulkanQueue - * @error: (optional): a #GError + * @error: (out) (optional): a #GError * * Returns: (transfer full): a new #GstVulkanCommandPool or %NULL * diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkutils.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkutils.c index d17bc26251..b48a6798bd 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkutils.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkutils.c @@ -489,7 +489,7 @@ gst_vulkan_get_or_create_image_view (GstVulkanImageMemory * image) * @device: a #GstVulkanDevice * @code: the SPIR-V shader byte code * @size: length of @code. Must be a multiple of 4 - * @error: (optional): a #GError to fill on failure + * @error: (out) (optional): a #GError to fill on failure * * Returns: (transfer full): a #GstVulkanHandle for @image matching the * original layout and format of @image or %NULL