From 26d4175f4fcc47fcc1d0c374a2dad68cedddcfa7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 16 Oct 2013 11:07:18 +0000 Subject: 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 --- src/plugins/General/rgscan/rgscandialog.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/rgscan') 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 #include #include +#include #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -63,8 +64,9 @@ RGScanDialog::RGScanDialog(QList 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(); + } } } -- cgit v1.2.3-13-gbd6f