diff options
Diffstat (limited to 'src/plugins/General')
| -rw-r--r-- | src/plugins/General/converter/converter.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/rgscan/rgscandialog.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp index 2d6386b1b..49bf64d4a 100644 --- a/src/plugins/General/converter/converter.cpp +++ b/src/plugins/General/converter/converter.cpp @@ -265,7 +265,11 @@ void Converter::run() if(full_path.endsWith(".mp3", Qt::CaseInsensitive)) { TagLib::MPEG::File *mpeg_file = dynamic_cast <TagLib::MPEG::File *> (file.file()); +#if ((TAGLIB_MAJOR_VERSION == 1) && (TAGLIB_MINOR_VERSION <= 11)) mpeg_file->save(TagLib::MPEG::File::ID3v2, true); +#else + mpeg_file->save(TagLib::MPEG::File::ID3v2, TagLib::File::StripOthers); +#endif } else file.save(); 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 { |
