diff --git a/gst-libs/gst/tag/gstid3tag.c b/gst-libs/gst/tag/gstid3tag.c index 2c3c66147d..1613be7f4a 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 400118bb1b..da1a1f326c 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 219fe85aa5..8eea4111a3 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,