From a263919f06ad502ff83a2e9731d7b6b42c8071ee Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 12 Jan 2021 10:34:41 +0100 Subject: [PATCH] audio,video: Add `out caller-allocates` to init and from_caps Part-of: --- gst-libs/gst/audio/audio-info.c | 4 ++-- gst-libs/gst/video/video-info.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/audio/audio-info.c b/gst-libs/gst/audio/audio-info.c index b18c2d9325..2fcc6711fb 100644 --- a/gst-libs/gst/audio/audio-info.c +++ b/gst-libs/gst/audio/audio-info.c @@ -101,7 +101,7 @@ gst_audio_info_new (void) /** * gst_audio_info_init: - * @info: a #GstAudioInfo + * @info: (out caller-allocates): a #GstAudioInfo * * Initialize @info with default values. */ @@ -181,7 +181,7 @@ gst_audio_info_set_format (GstAudioInfo * info, GstAudioFormat format, /** * gst_audio_info_from_caps: - * @info: a #GstAudioInfo + * @info: (out caller-allocates): a #GstAudioInfo * @caps: a #GstCaps * * Parse @caps and update @info. diff --git a/gst-libs/gst/video/video-info.c b/gst-libs/gst/video/video-info.c index 1a6117dd5c..43f24350c9 100644 --- a/gst-libs/gst/video/video-info.c +++ b/gst-libs/gst/video/video-info.c @@ -117,7 +117,7 @@ static gboolean fill_planes (GstVideoInfo * info, /** * gst_video_info_init: - * @info: a #GstVideoInfo + * @info: (out caller-allocates): a #GstVideoInfo * * Initialize @info with default values. */ @@ -385,7 +385,7 @@ gst_video_field_order_from_string (const gchar * order) /** * gst_video_info_from_caps: - * @info: a #GstVideoInfo + * @info: (out caller-allocates): #GstVideoInfo * @caps: a #GstCaps * * Parse @caps and update @info.