From 17a7fac1a1be8aa3dedcc9be48ac81bc92247934 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 17 Dec 2014 19:14:38 -0300 Subject: [PATCH] video: audio: fix GI annotations for proxy caps function Add the annotations to parameters that can be null and also for stating the ownership of the returned caps --- gst-libs/gst/audio/gstaudioencoder.c | 6 +++--- gst-libs/gst/video/gstvideoencoder.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index c6a6a23683..40ab506eea 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -1347,14 +1347,14 @@ refuse_caps: /** * gst_audio_encoder_proxy_getcaps: * @enc: a #GstAudioEncoder - * @caps: initial caps - * @filter: filter caps + * @caps: (allow-none): initial caps + * @filter: (allow-none): filter caps * * Returns caps that express @caps (or sink template caps if @caps == NULL) * restricted to channel/rate combinations supported by downstream elements * (e.g. muxers). * - * Returns: a #GstCaps owned by caller + * Returns: (transfer-full): a #GstCaps owned by caller */ GstCaps * gst_audio_encoder_proxy_getcaps (GstAudioEncoder * enc, GstCaps * caps, diff --git a/gst-libs/gst/video/gstvideoencoder.c b/gst-libs/gst/video/gstvideoencoder.c index 0026d6da3a..6fc807fc5b 100644 --- a/gst-libs/gst/video/gstvideoencoder.c +++ b/gst-libs/gst/video/gstvideoencoder.c @@ -667,14 +667,14 @@ parse_fail: /** * gst_video_encoder_proxy_getcaps: * @enc: a #GstVideoEncoder - * @caps: initial caps - * @filter: filter caps + * @caps: (allow-none): initial caps + * @filter: (allow-none): filter caps * * Returns caps that express @caps (or sink template caps if @caps == NULL) * restricted to resolution/format/... combinations supported by downstream * elements (e.g. muxers). * - * Returns: a #GstCaps owned by caller + * Returns: (transfer-full): a #GstCaps owned by caller */ GstCaps * gst_video_encoder_proxy_getcaps (GstVideoEncoder * encoder, GstCaps * caps,