ext/mad/gstid3tag.c: Add support for writing the GST_TAG_ALBUM_VOLUME_NUMBER
authorAlex Lancaster <alexlan@fedoraproject.org>
Tue, 7 Mar 2006 11:19:55 +0000 (11:19 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 7 Mar 2006 11:19:55 +0000 (11:19 +0000)
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
ext/mad/gstid3tag.c

index e4bb883e54e3f60f208a51c1436c21d5f11c4f23..410cd1721acfa6184b7a59c7bf8761e7f7c88d5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-07  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * 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  <wim@fluendo.com>
 
        * ext/amrnb/amrnbdec.c: (gst_amrnbdec_init),
index 2607ce1fd9235eeec91bd183e866512fc927ec9f..9692cbcca9b102b1c903867af300e730e5e7cb81 100644 (file)
@@ -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);