From b35bc51ed601c0521101e09d0b72fcd953e71c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 13 Sep 2012 17:11:56 -0400 Subject: [PATCH] audio: Fix annotations --- gst-libs/gst/audio/audio.c | 4 ++-- gst-libs/gst/audio/gstaudiodecoder.h | 2 +- gst-libs/gst/audio/gstaudioencoder.c | 2 +- gst-libs/gst/audio/gstaudioencoder.h | 2 +- gst-libs/gst/audio/gstaudioringbuffer.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/audio/audio.c b/gst-libs/gst/audio/audio.c index 48c5108b2..d3c244d0b 100644 --- a/gst-libs/gst/audio/audio.c +++ b/gst-libs/gst/audio/audio.c @@ -34,7 +34,7 @@ /** * gst_audio_buffer_clip: - * @buffer: The buffer to clip. + * @buffer: (transfer full): The buffer to clip. * @segment: Segment in %GST_FORMAT_TIME or %GST_FORMAT_DEFAULT to which * the buffer should be clipped. * @rate: sample rate. @@ -46,7 +46,7 @@ * After calling this function the caller does not own a reference to * @buffer anymore. * - * Returns: %NULL if the buffer is completely outside the configured segment, + * Returns: (transfer full): %NULL if the buffer is completely outside the configured segment, * otherwise the clipped buffer is returned. * * If the buffer has no timestamp, it is assumed to be inside the segment and diff --git a/gst-libs/gst/audio/gstaudiodecoder.h b/gst-libs/gst/audio/gstaudiodecoder.h index a6e6053e9..90d3d0582 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.h +++ b/gst-libs/gst/audio/gstaudiodecoder.h @@ -282,7 +282,7 @@ gboolean gst_audio_decoder_negotiate (GstAudioDecoder * dec); GstFlowReturn gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, gint frames); -GstBuffer * gst_audio_decoder_allocate_output_buffer (GstAudioDecoder * decoder, +GstBuffer * gst_audio_decoder_allocate_output_buffer (GstAudioDecoder * dec, gsize size); /* context parameters */ diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index 3acfd9ebd..151355416 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -2589,7 +2589,7 @@ no_decide_allocation: /** * gst_audio_encoder_negotiate: - * @dec: a #GstAudioEncoder + * @enc: a #GstAudioEncoder * * Negotiate with downstreame elements to currently configured #GstCaps. * diff --git a/gst-libs/gst/audio/gstaudioencoder.h b/gst-libs/gst/audio/gstaudioencoder.h index 6694c8723..d989bf974 100644 --- a/gst-libs/gst/audio/gstaudioencoder.h +++ b/gst-libs/gst/audio/gstaudioencoder.h @@ -228,7 +228,7 @@ gboolean gst_audio_encoder_set_output_format (GstAudioEncoder * enc, gboolean gst_audio_encoder_negotiate (GstAudioEncoder * enc); -GstBuffer * gst_audio_encoder_allocate_output_buffer (GstAudioEncoder * encoder, +GstBuffer * gst_audio_encoder_allocate_output_buffer (GstAudioEncoder * enc, gsize size); /* context parameters */ diff --git a/gst-libs/gst/audio/gstaudioringbuffer.c b/gst-libs/gst/audio/gstaudioringbuffer.c index 978caec79..7960c9dc3 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.c +++ b/gst-libs/gst/audio/gstaudioringbuffer.c @@ -329,7 +329,7 @@ gst_audio_ring_buffer_convert (GstAudioRingBuffer * buf, /** * gst_audio_ring_buffer_set_callback: * @buf: the #GstAudioRingBuffer to set the callback on - * @cb: the callback to set + * @cb: (scope async): the callback to set * @user_data: user data passed to the callback * * Sets the given callback function on the buffer. This function -- GitLab