summaryrefslogtreecommitdiff
path: root/src/Main.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 /src/Main.cxx
parentb0739eca87439a8f9cc2a0f9a6fcba1f68708df6 (diff)
input/Init: add RAII class
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index a932a50ce..38f6efe2a 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -553,8 +553,8 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
}
client_manager_init(raw_config);
- input_stream_global_init(raw_config,
- instance->io_thread.GetEventLoop());
+ const ScopeInputPluginsInit input_plugins_init(raw_config,
+ instance->io_thread.GetEventLoop());
playlist_list_global_init(raw_config);
#ifdef ENABLE_DAEMON
@@ -660,7 +660,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
#endif
playlist_list_global_finish();
- input_stream_global_finish();
#ifdef ENABLE_DATABASE
mapper_finish();