From feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2013 17:23:35 +0100 Subject: ConfigFile, CommandLine: use the Path class --- test/run_output.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/run_output.cxx') diff --git a/test/run_output.cxx b/test/run_output.cxx index 505423479..38f24fe5f 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -25,6 +25,7 @@ #include "event/Loop.hxx" #include "GlobalEvents.hxx" #include "IOThread.hxx" +#include "fs/Path.hxx" extern "C" { #include "output_plugin.h" @@ -201,6 +202,8 @@ int main(int argc, char **argv) return 1; } + const Path config_path = Path::FromFS(argv[1]); + audio_format_init(&audio_format, 44100, SAMPLE_FORMAT_S16, 2); g_thread_init(NULL); @@ -208,8 +211,7 @@ int main(int argc, char **argv) /* read configuration file (mpd.conf) */ config_global_init(); - success = config_read_file(argv[1], &error); - if (!success) { + if (!ReadConfigFile(config_path, &error)) { g_printerr("%s:", error->message); g_error_free(error); return 1; -- cgit v1.2.3