Set an empty album_artist for songs part of a compilation if not set

Songs in a compilation must all have the same album_artist and album (due to
songalbumid); if a song in a compilation doesn't have an album_artist, set it
to an empty string instead of defaulting to the value of artist. This is less
likely to break the compilation.
This commit is contained in:
Kai Elwert 2010-08-30 12:49:35 +02:00 committed by Julien BLACHE
parent de8884c8df
commit ebd673601d

View File

@ -191,7 +191,12 @@ fixup_tags(struct media_file_info *mfi)
/* If we don't have an album_artist, set it to artist */
if (!mfi->album_artist)
mfi->album_artist = strdup(mfi->artist);
{
if (mfi->compilation)
mfi->album_artist = strdup("");
else
mfi->album_artist = strdup(mfi->artist);
}
}