From: Tim-Philipp Müller Date: Thu, 9 Jun 2011 17:30:33 +0000 (+0100) Subject: libs: replace G_CONST_RETURN with 'const' X-Git-Tag: 1.19.3~511^2~6555^2~806 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efdd32580e887aeb68108d9578c0388bbc373375;p=platform%2Fupstream%2Fgstreamer.git libs: replace G_CONST_RETURN with 'const' G_CONST_RETURN will be deprecated soon. https://bugzilla.gnome.org/show_bug.cgi?id=652211 --- diff --git a/gst-libs/gst/tag/gstid3tag.c b/gst-libs/gst/tag/gstid3tag.c index 2c3c661..1613be7 100644 --- a/gst-libs/gst/tag/gstid3tag.c +++ b/gst-libs/gst/tag/gstid3tag.c @@ -225,7 +225,7 @@ static const GstTagEntryMatch tag_matches[] = { * * Returns: The corresponding GStreamer tag or NULL if none exists. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_from_id3_tag (const gchar * id3_tag) { int i = 0; @@ -285,7 +285,7 @@ static const GstTagEntryMatch user_tag_matches[] = { * * Returns: The corresponding GStreamer tag or NULL if none exists. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_from_id3_user_tag (const gchar * type, const gchar * id3_user_tag) { int i = 0; @@ -317,7 +317,7 @@ gst_tag_from_id3_user_tag (const gchar * type, const gchar * id3_user_tag) * * Returns: The corresponding ID3v2 tag or NULL if none exists. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_to_id3_tag (const gchar * gst_tag) { int i = 0; @@ -423,7 +423,7 @@ gst_tag_id3_genre_count (void) * * Returns: the genre or NULL if no genre is associated with that ID. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_id3_genre_get (const guint id) { if (id >= G_N_ELEMENTS (genres)) diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index 400118b..da1a1f3 100644 --- a/gst-libs/gst/tag/gstvorbistag.c +++ b/gst-libs/gst/tag/gstvorbistag.c @@ -109,7 +109,7 @@ static const GstTagEntryMatch tag_matches[] = { * * Returns: The corresponding GStreamer tag or NULL if none exists. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag) { int i = 0; @@ -138,7 +138,7 @@ gst_tag_from_vorbis_tag (const gchar * vorbis_tag) * * Returns: The corresponding vorbiscomment tag or NULL if none exists. */ -G_CONST_RETURN gchar * +const gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag) { int i = 0; diff --git a/gst-libs/gst/tag/tag.h b/gst-libs/gst/tag/tag.h index 219fe85..8eea411 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -444,8 +444,8 @@ GType gst_tag_image_type_get_type (void); /* functions for vorbis comment manipulation */ -G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag); -G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag); +const gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag); +const gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag); void gst_vorbis_tag_add (GstTagList * list, const gchar * tag, const gchar * value); @@ -466,13 +466,13 @@ GstBuffer * gst_tag_list_to_vorbiscomment_buffer (const GstTagLis /* functions for ID3 tag manipulation */ guint gst_tag_id3_genre_count (void); -G_CONST_RETURN gchar * gst_tag_id3_genre_get (const guint id); +const gchar * gst_tag_id3_genre_get (const guint id); GstTagList * gst_tag_list_new_from_id3v1 (const guint8 * data); -G_CONST_RETURN gchar * gst_tag_from_id3_tag (const gchar * id3_tag); -G_CONST_RETURN gchar * gst_tag_from_id3_user_tag (const gchar * type, +const gchar * gst_tag_from_id3_tag (const gchar * id3_tag); +const gchar * gst_tag_from_id3_user_tag (const gchar * type, const gchar * id3_user_tag); -G_CONST_RETURN gchar * gst_tag_to_id3_tag (const gchar * gst_tag); +const gchar * gst_tag_to_id3_tag (const gchar * gst_tag); gboolean gst_tag_list_add_id3_image (GstTagList * tag_list, const guint8 * image_data,