aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-12-24 12:30:13 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-12-24 12:30:13 +0000
commitd818f0b1788d258fd4de31ba73c46321361f8dab (patch)
tree7455fc827ba41f9e939d3f8d1e5f0b4a24a802ca /src/plugins
parentda667c8b5c61eec7a4e198b3c6d4d82a2824d12e (diff)
downloadqmmp-d818f0b1788d258fd4de31ba73c46321361f8dab.tar.gz
qmmp-d818f0b1788d258fd4de31ba73c46321361f8dab.tar.bz2
qmmp-d818f0b1788d258fd4de31ba73c46321361f8dab.zip
fixed case-sensitive bug again (Thanks to Ryota Shimamoto)(Fixes issue 628)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3981 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/General/converter/converter.cpp2
-rw-r--r--src/plugins/Input/flac/flacmetadatamodel.cpp4
-rw-r--r--src/plugins/Input/flac/replaygainreader.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp
index 141d9d233..e7e51fea0 100644
--- a/src/plugins/General/converter/converter.cpp
+++ b/src/plugins/General/converter/converter.cpp
@@ -290,7 +290,7 @@ void Converter::run()
file.tag()->setYear(metadata[Qmmp::YEAR].toUInt());
file.tag()->setTrack(metadata[Qmmp::TRACK].toUInt());
- if(full_path.endsWith(".mp3"), Qt::CaseInsensitive)
+ if(full_path.endsWith(".mp3", Qt::CaseInsensitive))
{
TagLib::MPEG::File *mpeg_file = dynamic_cast <TagLib::MPEG::File *> (file.file());
mpeg_file->save(TagLib::MPEG::File::ID3v2, true);
diff --git a/src/plugins/Input/flac/flacmetadatamodel.cpp b/src/plugins/Input/flac/flacmetadatamodel.cpp
index d9c88f339..3c0738819 100644
--- a/src/plugins/Input/flac/flacmetadatamodel.cpp
+++ b/src/plugins/Input/flac/flacmetadatamodel.cpp
@@ -58,13 +58,13 @@ QHash<QString, QString> FLACMetaDataModel::audioProperties()
TagLib::Ogg::FLAC::File *oggFlacFile = 0;
TagLib::FLAC::Properties *taglib_ap = 0;
qint64 size = 0;
- if(m_path.endsWith(".flac"), Qt::CaseInsensitive)
+ if(m_path.endsWith(".flac", Qt::CaseInsensitive))
{
flacFile = new TagLib::FLAC::File(m_path.toLocal8Bit().constData());
taglib_ap = flacFile->audioProperties();
size = flacFile->length();
}
- else if(m_path.endsWith(".oga"), Qt::CaseInsensitive)
+ else if(m_path.endsWith(".oga", Qt::CaseInsensitive))
{
oggFlacFile = new TagLib::Ogg::FLAC::File(m_path.toLocal8Bit().constData());
taglib_ap = oggFlacFile->audioProperties();
diff --git a/src/plugins/Input/flac/replaygainreader.cpp b/src/plugins/Input/flac/replaygainreader.cpp
index 4d14ed063..9aa27970c 100644
--- a/src/plugins/Input/flac/replaygainreader.cpp
+++ b/src/plugins/Input/flac/replaygainreader.cpp
@@ -27,13 +27,13 @@
ReplayGainReader::ReplayGainReader(const QString &path)
{
- if(path.endsWith(".flac"), Qt::CaseInsensitive)
+ if(path.endsWith(".flac", Qt::CaseInsensitive))
{
TagLib::FLAC::File fileRef(path.toLocal8Bit ().constData());
if(fileRef.xiphComment())
readVorbisComment(fileRef.xiphComment());
}
- else if(path.endsWith(".oga"), Qt::CaseInsensitive)
+ else if(path.endsWith(".oga", Qt::CaseInsensitive))
{
TagLib::Ogg::FLAC::File fileRef(path.toLocal8Bit ().constData());
if(fileRef.tag())