From a116edf23b98a1b41b0b972540a1ca7a7df0a9c8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 6 Apr 2010 08:31:14 +0000 Subject: 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 --- src/plugins/Input/flac/decoderflacfactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Input/flac/decoderflacfactory.cpp') 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 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; -- cgit v1.2.3-13-gbd6f