From 3fa654b41cc7857ebbbd6ffe2f603a8b157a925d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 10 Nov 2011 12:47:51 +0100 Subject: [PATCH] pbutils: Fix introspection annotations Fixes #663689 --- gst-libs/gst/pbutils/encoding-profile.c | 6 ++++++ gst-libs/gst/pbutils/encoding-target.c | 4 ++-- gst-libs/gst/pbutils/gstdiscoverer-types.c | 22 ++++++++++++++-------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 436b9c5..6499111 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -449,6 +449,12 @@ gst_encoding_container_profile_class_init (GObjectClass * klass) klass->finalize = gst_encoding_container_profile_finalize; } +/** + * gst_encoding_container_profile_get_profiles: + * @profile: a #GstEncodingContainerProfile + * + * Returns: (element-type GstPbutils.EncodingProfile) (transfer none): + * the list of contained #GstEncodingProfile. */ const GList * gst_encoding_container_profile_get_profiles (GstEncodingContainerProfile * profile) diff --git a/gst-libs/gst/pbutils/encoding-target.c b/gst-libs/gst/pbutils/encoding-target.c index 860b595..678cf7e 100644 --- a/gst-libs/gst/pbutils/encoding-target.c +++ b/gst-libs/gst/pbutils/encoding-target.c @@ -166,7 +166,7 @@ gst_encoding_target_get_description (GstEncodingTarget * target) * * Since: 0.10.32 * - * Returns: (transfer none) (element-type Gst.EncodingProfile): A list of + * Returns: (transfer none) (element-type GstPbutils.EncodingProfile): A list of * #GstEncodingProfile(s) this @target handles. */ const GList * @@ -246,7 +246,7 @@ validate_name (const gchar * name) * belongs. For example: #GST_ENCODING_CATEGORY_DEVICE. * @description: (transfer none): A description of #GstEncodingTarget in the * current locale. - * @profiles: (transfer none) (element-type Gst.EncodingProfile): A #GList of + * @profiles: (transfer none) (element-type GstPbutils.EncodingProfile): A #GList of * #GstEncodingProfile. * * Creates a new #GstEncodingTarget. diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c index f96b633..3d6ad99 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer-types.c +++ b/gst-libs/gst/pbutils/gstdiscoverer-types.c @@ -369,6 +369,12 @@ gst_discoverer_info_new (void) return (GstDiscovererInfo *) g_object_new (GST_TYPE_DISCOVERER_INFO, NULL); } +/** + * gst_discoverer_info_copy: + * @ptr: (transfer none): a #GstDiscovererInfo + * + * Returns: (transfer full): A copy of the #GstDiscovererInfo + */ GstDiscovererInfo * gst_discoverer_info_copy (GstDiscovererInfo * ptr) { @@ -416,7 +422,7 @@ gst_discoverer_info_class_init (GObjectClass * klass) /** * gst_discoverer_stream_info_list_free: - * @infos: a #GList of #GstDiscovererStreamInfo + * @infos: (element-type GstPbutils.DiscovererStreamInfo): a #GList of #GstDiscovererStreamInfo * * Decrements the reference count of all contained #GstDiscovererStreamInfo * and fress the #GList. @@ -439,7 +445,7 @@ gst_discoverer_stream_info_list_free (GList * infos) * Finds the #GstDiscovererStreamInfo contained in @info that match the * given @streamtype. * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): A #GList of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): A #GList of * matching #GstDiscovererStreamInfo. The caller should free it with * gst_discoverer_stream_info_list_free(). * @@ -466,7 +472,7 @@ gst_discoverer_info_get_streams (GstDiscovererInfo * info, GType streamtype) * * Finds all the #GstDiscovererAudioInfo contained in @info * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): A #GList of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): A #GList of * matching #GstDiscovererStreamInfo. The caller should free it with * gst_discoverer_stream_info_list_free(). * @@ -484,7 +490,7 @@ gst_discoverer_info_get_audio_streams (GstDiscovererInfo * info) * * Finds all the #GstDiscovererVideoInfo contained in @info * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): A #GList of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): A #GList of * matching #GstDiscovererStreamInfo. The caller should free it with * gst_discoverer_stream_info_list_free(). * @@ -502,7 +508,7 @@ gst_discoverer_info_get_video_streams (GstDiscovererInfo * info) * * Finds all the #GstDiscovererSubtitleInfo contained in @info * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): A #GList of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): A #GList of * matching #GstDiscovererStreamInfo. The caller should free it with * gst_discoverer_stream_info_list_free(). * @@ -521,7 +527,7 @@ gst_discoverer_info_get_subtitle_streams (GstDiscovererInfo * info) * * Finds all the #GstDiscovererContainerInfo contained in @info * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): A #GList of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): A #GList of * matching #GstDiscovererStreamInfo. The caller should free it with * gst_discoverer_stream_info_list_free(). * @@ -673,7 +679,7 @@ gst_discoverer_stream_info_get_misc (GstDiscovererStreamInfo * info) * gst_discoverer_container_info_get_streams: * @info: a #GstDiscovererStreamInfo * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): the list of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): the list of * #GstDiscovererStreamInfo this container stream offers. * Free with gst_discoverer_stream_info_list_free() after usage. * @@ -981,7 +987,7 @@ gst_discoverer_info_get_stream_info (GstDiscovererInfo * info) * gst_discoverer_info_get_stream_list: * @info: a #GstDiscovererInfo * - * Returns: (transfer full) (element-type Gst.DiscovererStreamInfo): the list of + * Returns: (transfer full) (element-type GstPbutils.DiscovererStreamInfo): the list of * all streams contained in the #info. Free after usage * with gst_discoverer_stream_info_list_free(). * -- 2.7.4