Comment #7 on issue 45 by kidjan: Genre not found
http://code.google.com/p/mp4v2/issues/detail?id=45
Okay, I checked this in, although with one bugfix--it also needs to make
sure
genreType isn't GENRE_UNDEFINED:
// Fix for issue #45 - two different ways to specify a genre string, the
// ~gen atom which contains a string and the gnre atom, which contains
// an index. if our genre is empty and we have a valid genreType,
// go ahead and populate genre with the correct string.
if (genre == "" && genreType != GENRE_UNDEFINED) {
genre = enumGenreType.data[genreType-1].formal;
c.genre = genre.c_str();
}
Without the extra check, files that contain either will display an empty
genre string
in MP4Info. Hopefully kona can drop in and comment on this change (seems
out of
place to me), but it's in r378.