summaryrefslogtreecommitdiff
path: root/test/run_input.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-05 21:50:31 +0100
committerMax Kellermann <max@musicpd.org>2019-02-05 22:07:49 +0100
commit9e73ea77b4ccd4131823ddc156322a2e4082d417 (patch)
tree50a5ed0b8b1eafd0e130ff757e700b9bda780504 /test/run_input.cxx
parentb0739eca87439a8f9cc2a0f9a6fcba1f68708df6 (diff)
input/Init: add RAII class
Diffstat (limited to 'test/run_input.cxx')
-rw-r--r--test/run_input.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/run_input.cxx b/test/run_input.cxx
index f81a8bc77..e5deafda8 100644
--- a/test/run_input.cxx
+++ b/test/run_input.cxx
@@ -108,18 +108,14 @@ class GlobalInit {
const ScopeArchivePluginsInit archive_plugins_init;
#endif
+ const ScopeInputPluginsInit input_plugins_init;
+
public:
explicit GlobalInit(Path config_path)
- :config(AutoLoadConfigFile(config_path))
+ :config(AutoLoadConfigFile(config_path)),
+ input_plugins_init(config, io_thread.GetEventLoop())
{
io_thread.Start();
-
- input_stream_global_init(config,
- io_thread.GetEventLoop());
- }
-
- ~GlobalInit() {
- input_stream_global_finish();
}
};