Commit c962a6be authored by Max Kellermann's avatar Max Kellermann

test/run_convert: fix Windows compiler errors

parent 922c4bf3
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "pcm/AudioFormat.hxx" #include "pcm/AudioFormat.hxx"
#include "pcm/Convert.hxx" #include "pcm/Convert.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/NarrowPath.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/StaticFifoBuffer.hxx" #include "util/StaticFifoBuffer.hxx"
#include "util/OptionDef.hxx" #include "util/OptionDef.hxx"
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
struct CommandLine { struct CommandLine {
AudioFormat in_audio_format, out_audio_format; AudioFormat in_audio_format, out_audio_format;
Path config_path = nullptr; FromNarrowPath config_path;
bool verbose = false; bool verbose = false;
}; };
...@@ -71,7 +72,7 @@ ParseCommandLine(int argc, char **argv) ...@@ -71,7 +72,7 @@ ParseCommandLine(int argc, char **argv)
while (auto o = option_parser.Next()) { while (auto o = option_parser.Next()) {
switch (Option(o.index)) { switch (Option(o.index)) {
case OPTION_CONFIG: case OPTION_CONFIG:
c.config_path = Path::FromFS(o.value); c.config_path = o.value;
break; break;
case OPTION_VERBOSE: case OPTION_VERBOSE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment