aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/flac
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-04-25 19:08:06 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-04-25 19:08:06 +0000
commit6bc7fa9112f3f22efb87ed8e1c7c990ce0c55cb5 (patch)
treee3538c63dd18770534313002186d4d5b36afcfb9 /src/plugins/Input/flac
parent93e0bbb4f0c3ae83a2700881f244b9d80fbf952b (diff)
downloadqmmp-6bc7fa9112f3f22efb87ed8e1c7c990ce0c55cb5.tar.gz
qmmp-6bc7fa9112f3f22efb87ed8e1c7c990ce0c55cb5.tar.bz2
qmmp-6bc7fa9112f3f22efb87ed8e1c7c990ce0c55cb5.zip
fixed previous commit
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6267 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/flac')
-rw-r--r--src/plugins/Input/flac/decoder_flac.cpp2
-rw-r--r--src/plugins/Input/flac/flacmetadatamodel.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Input/flac/decoder_flac.cpp b/src/plugins/Input/flac/decoder_flac.cpp
index 723a147ab..e2f274b12 100644
--- a/src/plugins/Input/flac/decoder_flac.cpp
+++ b/src/plugins/Input/flac/decoder_flac.cpp
@@ -268,7 +268,7 @@ bool DecoderFLAC::initialize()
QString p = m_path;
p.remove("flac://");
p.remove(QRegExp("#\\d+$"));
- TagLib::FLAC::File fileRef(p.toLocal8Bit().constData());
+ TagLib::FLAC::File fileRef(QStringToFileName(p));
//looking for cuesheet comment
TagLib::Ogg::XiphComment *xiph_comment = fileRef.xiphComment();
diff --git a/src/plugins/Input/flac/flacmetadatamodel.cpp b/src/plugins/Input/flac/flacmetadatamodel.cpp
index 82a033b44..a53ab2c9d 100644
--- a/src/plugins/Input/flac/flacmetadatamodel.cpp
+++ b/src/plugins/Input/flac/flacmetadatamodel.cpp
@@ -60,13 +60,13 @@ QHash<QString, QString> FLACMetaDataModel::audioProperties()
qint64 size = 0;
if(m_path.endsWith(".flac", Qt::CaseInsensitive))
{
- flacFile = new TagLib::FLAC::File(m_path.toLocal8Bit().constData());
+ flacFile = new TagLib::FLAC::File(QStringToFileName(m_path));
taglib_ap = flacFile->audioProperties();
size = flacFile->length();
}
else if(m_path.endsWith(".oga", Qt::CaseInsensitive))
{
- oggFlacFile = new TagLib::Ogg::FLAC::File(m_path.toLocal8Bit().constData());
+ oggFlacFile = new TagLib::Ogg::FLAC::File(QStringToFileName(m_path));
taglib_ap = oggFlacFile->audioProperties();
size = oggFlacFile->length();
}
@@ -132,7 +132,7 @@ VorbisCommentModel::VorbisCommentModel(const QString &path) : TagModel(TagModel:
}
else if (path.endsWith(".oga"))
{
- m_ogg_file = new TagLib::Ogg::FLAC::File(path.toLocal8Bit().constData());
+ m_ogg_file = new TagLib::Ogg::FLAC::File(QStringToFileName(path));
m_tag = m_ogg_file->tag();
}
}