musikr.metadata: handle case w/no mp4 covers

Otherwise could have triggered an exception.
This commit is contained in:
Alexander Capehart 2025-01-31 14:41:44 -07:00
parent ef732219d7
commit 1459498ff3
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -135,7 +135,9 @@ void JMetadataBuilder::setMp4(TagLib::MP4::Tag &tag) {
continue; continue;
} }
} }
cover = pics.front().data(); if (!pics.isEmpty()) {
cover = pics.front().data();
}
continue; continue;
} }
auto type = itemValue.type(); auto type = itemValue.type();