From 8bbf67c37d055d65fff4a18e854de8fda72d76d9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 15 Dec 2016 10:57:14 -0300 Subject: [PATCH] audio: Fix introspection annotation In gst_audio_check_valid_channel_positions the mask is an out parameter. And minor conversion from a print to a GST_ERROR. --- gst-libs/gst/audio/audio-channels.c | 2 +- gst-libs/gst/pbutils/encoding-profile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/audio/audio-channels.c b/gst-libs/gst/audio/audio-channels.c index 77bbccf57..8097a4959 100644 --- a/gst-libs/gst/audio/audio-channels.c +++ b/gst-libs/gst/audio/audio-channels.c @@ -312,7 +312,7 @@ gst_audio_check_valid_channel_positions (const GstAudioChannelPosition * * @position: (array length=channels): The %GstAudioChannelPositions * @channels: The number of channels. * @force_order: Only consider the GStreamer channel order. - * @channel_mask: (array): the output channel mask + * @channel_mask: (out): the output channel mask * * Convert the @position array of @channels channels to a bitmask. * diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 0058c8638..b12430c44 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -1394,7 +1394,7 @@ parse_encoding_profile (const gchar * value) presence = g_ascii_strtoll (strpresence_v[1], &endptr, 10); if (endptr == strpresence_v[1]) { - g_printerr ("Wrong presence %s\n", strpresence_v[1]); + GST_ERROR ("Wrong presence %s\n", strpresence_v[1]); return NULL; } -- 2.34.1