Don't crash when trying to load a wma file without a tag.
This commit is contained in:
parent
eddf6c9980
commit
bd59b7009b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue