Fix crash with empty APE tag for MPC files

This commit is contained in:
Jonas Kvinge 2020-10-21 20:29:06 +02:00
parent 0e8d5bdc5d
commit ffd2e2188a
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ void TagReader::ReadFile(const QString &filename, pb::tagreader::SongMetadata *s
}
else if (TagLib::MPC::File* file_mpc = dynamic_cast<TagLib::MPC::File*>(fileref->file())) {
if (file_mpc->tag()) {
if (file_mpc->APETag()) {
ParseAPETag(file_mpc->APETag()->itemListMap(), nullptr, &disc, &compilation, song);
}
if (tag) Decode(tag->comment(), nullptr, song->mutable_comment());