musikr.metadata: handle case w/no mp4 covers
Otherwise could have triggered an exception.
This commit is contained in:
parent
ef732219d7
commit
1459498ff3
1 changed files with 3 additions and 1 deletions
|
@ -135,7 +135,9 @@ void JMetadataBuilder::setMp4(TagLib::MP4::Tag &tag) {
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (!pics.isEmpty()) {
|
||||
cover = pics.front().data();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
auto type = itemValue.type();
|
||||
|
|
Loading…
Reference in a new issue