From 6bc7fa9112f3f22efb87ed8e1c7c990ce0c55cb5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 25 Apr 2016 19:08:06 +0000 Subject: fixed previous commit git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6267 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/flac/decoder_flac.cpp | 2 +- src/plugins/Input/flac/flacmetadatamodel.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/flac') 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 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(); } } -- cgit v1.2.3-13-gbd6f