audio,video: Add out caller-allocates to init and from_caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1005>
This commit is contained in:
Marijn Suijten 2021-01-12 10:34:41 +01:00 committed by GStreamer Merge Bot
parent 7e16eed522
commit a263919f06
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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.