From: Alex Lancaster Date: Tue, 7 Mar 2006 11:19:55 +0000 (+0000) Subject: ext/mad/gstid3tag.c: Add support for writing the GST_TAG_ALBUM_VOLUME_NUMBER X-Git-Tag: RELEASE-0_10_3~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=267d257bb6bc16bf7f46a2c618fc5e4b0c9205a0;p=platform%2Fupstream%2Fgst-plugins-ugly.git 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). --- diff --git a/ChangeLog b/ChangeLog index e4bb883e..410cd172 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 2607ce1f..9692cbcc 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);