id3demux: fix parsing of ID3v2.4 genre frames with multiple genres

We'd only extract the first genre (multiple times) instead of all
genres.

https://bugzilla.gnome.org/show_bug.cgi?id=638535
This commit is contained in:
Erich Schubert 2011-01-02 19:23:51 +00:00 committed by Tim-Philipp Müller
parent 79a8e0ee42
commit 5b79a3d2f8

View file

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