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/dump_playlist.cxx | |
parent | 115af4f5650f0c48a16765184050b509be7876b0 (diff) |
test/*: use class EventThread instead of ScopeIOThread
Diffstat (limited to 'test/dump_playlist.cxx')
-rw-r--r-- | test/dump_playlist.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index a33c392a2..3cb75a5c9 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -25,7 +25,7 @@ #include "config/ConfigGlobal.hxx" #include "decoder/DecoderList.hxx" #include "input/Init.hxx" -#include "ScopeIOThread.hxx" +#include "event/Thread.hxx" #include "playlist/PlaylistRegistry.hxx" #include "playlist/PlaylistPlugin.hxx" #include "fs/Path.hxx" @@ -64,9 +64,10 @@ try { ReadConfigFile(config_path); - const ScopeIOThread io_thread; + EventThread io_thread; + io_thread.Start(); - input_stream_global_init(io_thread_get()); + input_stream_global_init(io_thread.GetEventLoop()); playlist_list_global_init(); decoder_plugin_init_all(); |