Fix for null title/artist/album/genre in wma files

This commit is contained in:
Ron Pedde 2006-10-15 23:19:04 +00:00
parent b928966f9b
commit 4e786208ed

View File

@ -756,6 +756,21 @@ void make_composite_tags(MP3FILE *song) {
char *sep = " - ";
char *va_artist = "Various Artists";
if(song->genre && (strlen(song->genre) == 0)) {
free(song->genre);
song->genre = NULL;
}
if(song->artist && (strlen(song->artist) == 0)) {
free(song->artist);
song->artist = NULL;
}
if(song->title && (strlen(song->title) == 0)) {
free(song->title);
song->title = NULL;
}
if(!song->artist) {
if (song->orchestra && song->conductor) {
len = (int)strlen(song->orchestra) +