Skip to content

Commit

Permalink
Fix deprecated TagLib call
Browse files Browse the repository at this point in the history
  • Loading branch information
napaalm committed Feb 1, 2024
1 parent ad9e1f9 commit 12025af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/track/taglib/trackmetadata_ape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool importCoverImageFromTag(QImage* pCoverArt, const TagLib::APE::Tag& tag) {
if (tag.itemListMap().contains("COVER ART (FRONT)")) {
const TagLib::ByteVector nullStringTerminator(1, 0);
TagLib::ByteVector item =
tag.itemListMap()["COVER ART (FRONT)"].value();
tag.itemListMap()["COVER ART (FRONT)"].binaryData();
int pos = item.find(nullStringTerminator); // skip the filename
if (++pos > 0) {
const TagLib::ByteVector data(item.mid(pos));
Expand Down

0 comments on commit 12025af

Please sign in to comment.