From 267d257bb6bc16bf7f46a2c618fc5e4b0c9205a0 Mon Sep 17 00:00:00 2001 From: Alex Lancaster Date: Tue, 7 Mar 2006 11:19:55 +0000 Subject: [PATCH] ext/mad/gstid3tag.c: Add support for writing the GST_TAG_ALBUM_VOLUME_NUMBER Original commit message from CVS: * ext/mad/gstid3tag.c: (tag_list_to_id3_tag_foreach): Add support for writing the GST_TAG_ALBUM_VOLUME_NUMBER tag (#333683, patch by: Alex Lancaster). --- ChangeLog | 6 ++++++ ext/mad/gstid3tag.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index e4bb883e54..410cd1721a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-07 Tim-Philipp Müller + + * ext/mad/gstid3tag.c: (tag_list_to_id3_tag_foreach): + Add support for writing the GST_TAG_ALBUM_VOLUME_NUMBER + tag (#333683, patch by: Alex Lancaster). + 2006-03-02 Wim Taymans * ext/amrnb/amrnbdec.c: (gst_amrnbdec_init), diff --git a/ext/mad/gstid3tag.c b/ext/mad/gstid3tag.c index 2607ce1fd9..9692cbcca9 100644 --- a/ext/mad/gstid3tag.c +++ b/ext/mad/gstid3tag.c @@ -792,6 +792,15 @@ tag_list_to_id3_tag_foreach (const GstTagList * list, const gchar * tag_name, gchar *str; guint u; + if (!gst_tag_list_get_uint_index (list, tag_name, values, &u)) + g_assert_not_reached (); + str = g_strdup_printf ("%u", u); + put = g_utf8_to_ucs4_fast (str, -1, NULL); + g_free (str); + } else if (strcmp (tag_name, GST_TAG_ALBUM_VOLUME_NUMBER) == 0) { + gchar *str; + guint u; + if (!gst_tag_list_get_uint_index (list, tag_name, values, &u)) g_assert_not_reached (); str = g_strdup_printf ("%u", u);