From e36a4d9dafa9604dc5a2b7bd40467f9ef813ba46 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 24 Jan 2021 16:31:11 +0000 Subject: fixed taglib 1.12 warnings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9657 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/rgscan/rgscandialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/General/rgscan/rgscandialog.cpp') diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index 4f30dd5a8..6527fcf95 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -395,7 +395,11 @@ void RGScanDialog::on_writeButton_clicked() TagLib::MPEG::File file(qPrintable(item->url)); writeAPETag(file.APETag(true), item); writeID3v2Tag(file.ID3v2Tag(true), item); +#if ((TAGLIB_MAJOR_VERSION == 1) && (TAGLIB_MINOR_VERSION <= 11)) file.save(TagLib::MPEG::File::APE | TagLib::MPEG::File::ID3v2, false); +#else + file.save(TagLib::MPEG::File::APE | TagLib::MPEG::File::ID3v2, TagLib::File::StripNone); +#endif } else if(ext == "flac") //flac { -- cgit v1.2.3-13-gbd6f