diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-16 11:07:18 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-16 11:07:18 +0000 |
| commit | 26d4175f4fcc47fcc1d0c374a2dad68cedddcfa7 (patch) | |
| tree | 1abdb0a27a1f5206ffafec8112959b646e5c8d91 /src/plugins/General/rgscan | |
| parent | 691eff1ae20c8561674b379c0f8c13026622d11e (diff) | |
| download | qmmp-26d4175f4fcc47fcc1d0c374a2dad68cedddcfa7.tar.gz qmmp-26d4175f4fcc47fcc1d0c374a2dad68cedddcfa7.tar.bz2 qmmp-26d4175f4fcc47fcc1d0c374a2dad68cedddcfa7.zip | |
rgscan: added ogg vorbis support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3799 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/rgscan')
| -rw-r--r-- | src/plugins/General/rgscan/rgscandialog.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index f2c4e995d..c097eadad 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -31,6 +31,7 @@ #include <taglib/flacfile.h> #include <taglib/xiphcomment.h> #include <taglib/oggflacfile.h> +#include <taglib/vorbisfile.h> #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -63,8 +64,9 @@ RGScanDialog::RGScanDialog(QList <PlayListTrack *> tracks, QWidget *parent) : Q QString ext = track->url().section(".", -1).toLower(); if(ext == "mp3" || //mpeg 1 layer 3 - ext == "flac" || //flac - ext == "oga") //native flac + ext == "flac" || //native flac + ext == "oga" || //ogg flac + ext == "ogg") //ogg vorbis { paths.append(track->url()); QString name = formatter.parse(track); @@ -322,5 +324,11 @@ void RGScanDialog::on_writeButton_clicked() writeVorbisComment(file.tag(), item); file.save(); } + else if(ext == "ogg") + { + TagLib::Ogg::Vorbis::File file(qPrintable(item->url)); + writeVorbisComment(file.tag(), item); + file.save(); + } } } |
