aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-11-01 20:09:20 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-11-01 20:09:20 +0000
commit73cbbeac76f2472dc2b886b6a72de78f71bdee10 (patch)
tree05fbcaea942a73883a45117233d8568b7657f475 /src/plugins/General
parenta082fddeaa419aa4873ef33935631066d5964f28 (diff)
downloadqmmp-73cbbeac76f2472dc2b886b6a72de78f71bdee10.tar.gz
qmmp-73cbbeac76f2472dc2b886b6a72de78f71bdee10.tar.bz2
qmmp-73cbbeac76f2472dc2b886b6a72de78f71bdee10.zip
replaced deprecated TagLib functions
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9551 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/converter/converter.cpp2
-rw-r--r--src/plugins/General/rgscan/rgscandialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp
index b81d4146e..37a157814 100644
--- a/src/plugins/General/converter/converter.cpp
+++ b/src/plugins/General/converter/converter.cpp
@@ -265,7 +265,7 @@ void Converter::run()
if(full_path.endsWith(".mp3", Qt::CaseInsensitive))
{
TagLib::MPEG::File *mpeg_file = dynamic_cast <TagLib::MPEG::File *> (file.file());
- mpeg_file->save(TagLib::MPEG::File::ID3v2, true);
+ mpeg_file->save(TagLib::MPEG::File::ID3v2, TagLib::File::StripOthers);
}
else
file.save();
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp
index c9376ba00..710a3e047 100644
--- a/src/plugins/General/rgscan/rgscandialog.cpp
+++ b/src/plugins/General/rgscan/rgscandialog.cpp
@@ -395,7 +395,7 @@ void RGScanDialog::on_writeButton_clicked()
TagLib::MPEG::File file(qPrintable(item->url));
writeAPETag(file.APETag(true), item);
writeID3v2Tag(file.ID3v2Tag(true), item);
- file.save(TagLib::MPEG::File::APE | TagLib::MPEG::File::ID3v2, false);
+ file.save(TagLib::MPEG::File::APE | TagLib::MPEG::File::ID3v2, TagLib::File::StripNone);
}
else if(ext == "flac") //flac
{