diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-04-06 08:31:14 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-04-06 08:31:14 +0000 |
| commit | a116edf23b98a1b41b0b972540a1ca7a7df0a9c8 (patch) | |
| tree | 67798029bee21aaed47a3826f1b6590cd8e70341 /src/plugins/Input/flac/decoderflacfactory.cpp | |
| parent | aa425134d6cd2f0fec7a381364cf9aa4f67c3cc6 (diff) | |
| download | qmmp-a116edf23b98a1b41b0b972540a1ca7a7df0a9c8.tar.gz qmmp-a116edf23b98a1b41b0b972540a1ca7a7df0a9c8.tar.bz2 qmmp-a116edf23b98a1b41b0b972540a1ca7a7df0a9c8.zip | |
flac plugin: fixed case sensitivity
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1660 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/flac/decoderflacfactory.cpp')
| -rw-r--r-- | src/plugins/Input/flac/decoderflacfactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Input/flac/decoderflacfactory.cpp b/src/plugins/Input/flac/decoderflacfactory.cpp index 1fb0cbc54..f6ac9fdd8 100644 --- a/src/plugins/Input/flac/decoderflacfactory.cpp +++ b/src/plugins/Input/flac/decoderflacfactory.cpp @@ -36,7 +36,7 @@ bool DecoderFLACFactory::supports(const QString &source) const { - return source.endsWith(".flac") || source.endsWith(".oga"); + return source.endsWith(".flac", Qt::CaseInsensitive) || source.endsWith(".oga", Qt::CaseInsensitive); } bool DecoderFLACFactory::canDecode(QIODevice *input) const @@ -73,13 +73,13 @@ QList<FileInfo *> DecoderFLACFactory::createPlayList(const QString &fileName, bo TagLib::FLAC::File *flacFile = 0; TagLib::Ogg::FLAC::File *oggFlacFile = 0; - if(fileName.endsWith(".flac")) + if(fileName.endsWith(".flac", Qt::CaseInsensitive)) { flacFile = new TagLib::FLAC::File(fileName.toLocal8Bit ()); tag = useMetaData ? flacFile->xiphComment() : 0; ap = flacFile->audioProperties(); } - else if(fileName.endsWith(".oga")) + else if(fileName.endsWith(".oga", Qt::CaseInsensitive)) { oggFlacFile = new TagLib::Ogg::FLAC::File(fileName.toLocal8Bit ()); tag = useMetaData ? oggFlacFile->tag() : 0; |
