Don't crash when trying to load a wma file without a tag.

This commit is contained in:
David Sansome 2010-09-25 15:46:35 +00:00
parent eddf6c9980
commit bd59b7009b
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ void Song::InitFromFile(const QString& filename, int directory_id) {
ParseOggTag(file->xiphComment()->fieldListMap(), codec, &disc, &compilation);
}
d->comment_ = Decode(tag->comment(), codec);
} else {
} else if (tag) {
d->comment_ = Decode(tag->comment(), codec);
}