diff options
Diffstat (limited to 'src/plugins/Input/flac')
| -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; |
