From e8aba7db8bd41cf0ede82d8f43dc32a14394745e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 16 Jun 2015 14:34:04 -0400 Subject: [PATCH] gi: Fix warnings in libgstaudio * Duplicate section * Miss-named parameter * Missing transfer none annotation for meta --- gst-libs/gst/audio/audio-info.c | 6 ------ gst-libs/gst/audio/gstaudiobasesink.h | 2 +- gst-libs/gst/audio/gstaudiometa.c | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gst-libs/gst/audio/audio-info.c b/gst-libs/gst/audio/audio-info.c index 26b96ddeaa..e5f3341623 100644 --- a/gst-libs/gst/audio/audio-info.c +++ b/gst-libs/gst/audio/audio-info.c @@ -16,12 +16,6 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ -/** - * SECTION:gstaudio - * @short_description: Support library for audio elements - * - * This library contains some helper functions for audio elements. - */ #ifdef HAVE_CONFIG_H # include "config.h" diff --git a/gst-libs/gst/audio/gstaudiobasesink.h b/gst-libs/gst/audio/gstaudiobasesink.h index d17fc97c14..ce5b3e2595 100644 --- a/gst-libs/gst/audio/gstaudiobasesink.h +++ b/gst-libs/gst/audio/gstaudiobasesink.h @@ -135,7 +135,7 @@ typedef enum * @etime: external clock time * @itime: internal clock time * @requested_skew: skew amount requested by the callback - * @discont: TRUE if there was a discontinuity in the average skew + * @discont_reason: TRUE if there was a discontinuity in the average skew * @user_data: user data * * This function is set with gst_audio_base_sink_set_custom_slaving_callback() diff --git a/gst-libs/gst/audio/gstaudiometa.c b/gst-libs/gst/audio/gstaudiometa.c index 0cadc02bb4..9d674f30e1 100644 --- a/gst-libs/gst/audio/gstaudiometa.c +++ b/gst-libs/gst/audio/gstaudiometa.c @@ -79,7 +79,7 @@ gst_audio_downmix_meta_transform (GstBuffer * dest, GstMeta * meta, * Find the #GstAudioDownmixMeta on @buffer for the given destination * channel positions. * - * Returns: the #GstAudioDownmixMeta on @buffer. + * Returns: (transfer none): the #GstAudioDownmixMeta on @buffer. */ GstAudioDownmixMeta * gst_buffer_get_audio_downmix_meta_for_channels (GstBuffer * buffer, @@ -119,7 +119,7 @@ gst_buffer_get_audio_downmix_meta_for_channels (GstBuffer * buffer, * the input channels with the coefficients in @matrix[i] and taking the sum * of the results. * - * Returns: the #GstAudioDownmixMeta on @buffer. + * Returns: (transfer none): the #GstAudioDownmixMeta on @buffer. */ GstAudioDownmixMeta * gst_buffer_add_audio_downmix_meta (GstBuffer * buffer,