diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-10 22:14:07 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-10 22:25:01 +0100 |
commit | d1456ae039465dce44516624c1d44ee02b9f7613 (patch) | |
tree | ace78ac87758adb027ce86ee83029aa9cbaa190a /test/run_output.cxx | |
parent | 115af4f5650f0c48a16765184050b509be7876b0 (diff) |
test/*: use class EventThread instead of ScopeIOThread
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r-- | test/run_output.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx index 37954378b..a4a39b826 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -26,8 +26,7 @@ #include "config/ConfigOption.hxx" #include "Idle.hxx" #include "Main.hxx" -#include "event/Loop.hxx" -#include "ScopeIOThread.hxx" +#include "event/Thread.hxx" #include "fs/Path.hxx" #include "AudioParser.hxx" #include "ReplayGainConfig.hxx" @@ -136,14 +135,14 @@ try { config_global_init(); ReadConfigFile(config_path); - EventLoop event_loop; - - const ScopeIOThread io_thread; + EventThread io_thread; + io_thread.Start(); /* initialize the audio output */ DummyAudioOutputClient client; - AudioOutput *ao = load_audio_output(event_loop, client, argv[2]); + AudioOutput *ao = load_audio_output(io_thread.GetEventLoop(), client, + argv[2]); /* parse the audio format */ |