musikr.metadata: handle case w/no mp4 covers

Otherwise could have triggered an exception.
This commit is contained in:
Alexander Capehart
2025-02-06 14:54:43 -07:00
parent ef732219d7
commit 1459498ff3
+3 -1
View File
@@ -135,7 +135,9 @@ void JMetadataBuilder::setMp4(TagLib::MP4::Tag &tag) {
continue;
}
}
cover = pics.front().data();
if (!pics.isEmpty()) {
cover = pics.front().data();
}
continue;
}
auto type = itemValue.type();