From 545d0b144fd4d39c00856b162ebcb0e186b2b48f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 18 Mar 2020 15:38:25 +0100 Subject: [PATCH] audio: annotate @buf in finish_frame methods --- gst-libs/gst/audio/gstaudiodecoder.c | 4 ++-- gst-libs/gst/audio/gstaudioencoder.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 31a322e3f6..33d086fc15 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1234,7 +1234,7 @@ foreach_metadata (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data) /** * gst_audio_decoder_finish_subframe: * @dec: a #GstAudioDecoder - * @buf: decoded data + * @buf: (transfer full) (allow-none): decoded data * * Collects decoded data and pushes it downstream. This function may be called * multiple times for a given input frame. @@ -1268,7 +1268,7 @@ gst_audio_decoder_finish_subframe (GstAudioDecoder * dec, GstBuffer * buf) /** * gst_audio_decoder_finish_frame: * @dec: a #GstAudioDecoder - * @buf: decoded data + * @buf: (transfer full) (allow-none): decoded data * @frames: number of decoded frames represented by decoded data * * Collects decoded data and pushes it downstream. diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index cf120a36dc..33f1a56315 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -717,7 +717,7 @@ foreach_metadata (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data) /** * gst_audio_encoder_finish_frame: * @enc: a #GstAudioEncoder - * @buffer: encoded data + * @buffer: (transfer full) (allow-none): encoded data * @samples: number of samples (per channel) represented by encoded data * * Collects encoded data and pushes encoded data downstream.