tag: id3v2: fix parsing of ID3v2.4 genre frames with multiple genres
authorErich Schubert <erich@debian.org>
Sun, 2 Jan 2011 19:23:51 +0000 (19:23 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 14 Aug 2011 23:10:34 +0000 (00:10 +0100)
We'd only extract the first genre (multiple times) instead of all
genres.

https://bugzilla.gnome.org/show_bug.cgi?id=638535

gst-libs/gst/tag/id3v2frames.c

index 021a3d1..e51bbb7 100644 (file)
@@ -875,7 +875,7 @@ id3v2_genre_fields_to_taglist (ID3TagsWorking * work, const gchar * tag_name,
   for (i = 0; i < tag_fields->len; i++) {
     gint len;
 
-    tag_str = g_array_index (tag_fields, gchar *, 0);
+    tag_str = g_array_index (tag_fields, gchar *, i);
     if (tag_str == NULL)
       continue;