Commit 7b911556 authored by Mikael Ottela's avatar Mikael Ottela

Additional checks for unknown genres

svn path=/trunk/; revision=3163
parent 5e24a7d0
2009-04-01 Mikael Ottela <mikael.ottela@ixonos.com>
* src/tracker-extract/tracker-extract-mp3.c: More checks for
unknown genre values.
Fixes NB#106639.
2009-04-01 Mikael Ottela <mikael.ottela@ixonos.com>
* src/tracker-extract/tracker-extract-gstreamer.c: Improvements to
......
......@@ -794,6 +794,10 @@ get_id3v24_tags (const gchar *data,
g_free (word);
word = g_strdup (genre_names[genre]);
}
if (strcasecmp (word, "unknown")==0) {
break;
}
}
g_hash_table_insert (metadata,
......@@ -1024,6 +1028,10 @@ get_id3v23_tags (const gchar *data,
g_free (word);
word = g_strdup (genre_names[genre]);
}
if (strcasecmp (word, "unknown")==0) {
break;
}
}
g_hash_table_insert (metadata,
......@@ -1232,6 +1240,10 @@ get_id3v20_tags (const gchar *data,
g_free (word);
word = g_strdup (genre_names[genre]);
}
if (strcasecmp (word, "unknown")==0) {
break;
}
}
g_hash_table_insert (metadata,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment