wavpack: fix compilation on Windows
NarrowPath is needed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
fb9194b537
commit
914ee92015
@ -7,6 +7,7 @@
|
|||||||
#include "input/InputStream.hxx"
|
#include "input/InputStream.hxx"
|
||||||
#include "pcm/CheckAudioFormat.hxx"
|
#include "pcm/CheckAudioFormat.hxx"
|
||||||
#include "tag/Handler.hxx"
|
#include "tag/Handler.hxx"
|
||||||
|
#include "fs/NarrowPath.hxx"
|
||||||
#include "fs/Path.hxx"
|
#include "fs/Path.hxx"
|
||||||
#include "lib/fmt/PathFormatter.hxx"
|
#include "lib/fmt/PathFormatter.hxx"
|
||||||
#include "lib/fmt/RuntimeError.hxx"
|
#include "lib/fmt/RuntimeError.hxx"
|
||||||
@ -36,8 +37,9 @@ static WavpackContext *
|
|||||||
WavpackOpenInput(Path path, int flags, int norm_offset)
|
WavpackOpenInput(Path path, int flags, int norm_offset)
|
||||||
{
|
{
|
||||||
char error[ERRORLEN];
|
char error[ERRORLEN];
|
||||||
auto *wpc = WavpackOpenFileInput(path.c_str(), error,
|
auto np = NarrowPath(path);
|
||||||
flags, norm_offset);
|
auto wpc = WavpackOpenFileInput(np, error,
|
||||||
|
flags, norm_offset);
|
||||||
if (wpc == nullptr)
|
if (wpc == nullptr)
|
||||||
throw FmtRuntimeError("failed to open WavPack file \"{}\": {}",
|
throw FmtRuntimeError("failed to open WavPack file \"{}\": {}",
|
||||||
path, error);
|
path, error);
|
||||||
|
Loading…
Reference in New Issue
Block a user