From 287a4404d9f84f7f715436be297ee944d2c49564 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 17 Jun 2018 14:55:48 +0000 Subject: fixed win32 build git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8046 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/sndfile/decodersndfilefactory.cpp | 2 +- src/plugins/Input/wavpack/decoderwavpackfactory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index 753cdb0d2..1d4e6d382 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -112,7 +112,7 @@ QList DecoderSndFileFactory::createPlayList(const QString &path, Tr memset(&snd_info, 0, sizeof(snd_info)); snd_info.format = 0; #ifdef Q_OS_WIN - sndfile = sf_wchar_open(reinterpret_cast(fileName.utf16()), SFM_READ, &snd_info); + sndfile = sf_wchar_open(reinterpret_cast(path.utf16()), SFM_READ, &snd_info); #else sndfile = sf_open(path.toLocal8Bit().constData(), SFM_READ, &snd_info); #endif diff --git a/src/plugins/Input/wavpack/decoderwavpackfactory.cpp b/src/plugins/Input/wavpack/decoderwavpackfactory.cpp index 9ea40533a..94f26723b 100644 --- a/src/plugins/Input/wavpack/decoderwavpackfactory.cpp +++ b/src/plugins/Input/wavpack/decoderwavpackfactory.cpp @@ -82,7 +82,7 @@ QList DecoderWavPackFactory::createPlayList(const QString &path, Tr int cue_len = 0; #if defined(Q_OS_WIN) && defined(OPEN_FILE_UTF8) - WavpackContext *ctx = WavpackOpenFileInput (fileName.toUtf8().constData(), + WavpackContext *ctx = WavpackOpenFileInput (path.toUtf8().constData(), err, OPEN_WVC | OPEN_TAGS | OPEN_FILE_UTF8, 0); #else WavpackContext *ctx = WavpackOpenFileInput (path.toLocal8Bit().constData(), -- cgit v1.2.3-13-gbd6f