diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-07-28 17:12:21 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-07-28 17:12:21 +0000 |
| commit | 519c571ee71d90b97e7ed1e12e38e63f22987801 (patch) | |
| tree | 25ed698f6f2fc44b6715a03b0d8867d9a3fbca6f /src | |
| parent | bd0efc2bb69d6acf5d0a566ac1418b935e0a553a (diff) | |
| download | qmmp-519c571ee71d90b97e7ed1e12e38e63f22987801.tar.gz qmmp-519c571ee71d90b97e7ed1e12e38e63f22987801.tar.bz2 qmmp-519c571ee71d90b97e7ed1e12e38e63f22987801.zip | |
rgscan: added ogg opus support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9018 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/rgscan/rgscandialog.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index 0cb237183..78a5276d4 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -36,6 +36,7 @@ #include <taglib/id3v2tag.h> #include <taglib/textidentificationframe.h> #include <taglib/mp4file.h> +#include <taglib/opusfile.h> #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -76,7 +77,8 @@ RGScanDialog::RGScanDialog(QList <PlayListTrack *> tracks, QWidget *parent) : Q ext == "oga" || //ogg flac ext == "ogg" || //ogg vorbis ext == "wv" || //wavpack - ext == "m4a") //aac (mp4 container) + ext == "m4a" || //aac (mp4 container) + ext == "opus") { paths.append(track->path()); QString name = formatter.format(track); @@ -434,5 +436,11 @@ void RGScanDialog::on_writeButton_clicked() writeMP4Tag(file.tag(), item); file.save(); } + else if(ext == "opus") + { + TagLib::Ogg::Opus::File file(qPrintable(item->url)); + writeVorbisComment(file.tag(), item); + file.save(); + } } } |
