summaryrefslogtreecommitdiff
path: root/test/run_decoder.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-05 22:11:45 +0100
committerMax Kellermann <max@musicpd.org>2019-02-05 22:12:22 +0100
commit7a23c123c8b3b24ea61157e10b2ffd3ae44c5acf (patch)
tree1615288af12ddbe04edfed0b43f617b8e6edd2b7 /test/run_decoder.cxx
parente85b24bee0004f6e18c986fa718b2854fee57730 (diff)
decoder/List: add RAII class
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r--test/run_decoder.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index be7091498..c94b5ee07 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -89,19 +89,15 @@ class GlobalInit {
const ConfigData config;
EventThread io_thread;
const ScopeInputPluginsInit input_plugins_init;
+ const ScopeDecoderPluginsInit decoder_plugins_init;
public:
explicit GlobalInit(Path config_path)
:config(AutoLoadConfigFile(config_path)),
- input_plugins_init(config, io_thread.GetEventLoop())
+ input_plugins_init(config, io_thread.GetEventLoop()),
+ decoder_plugins_init(config)
{
io_thread.Start();
-
- decoder_plugin_init_all(config);
- }
-
- ~GlobalInit() {
- decoder_plugin_deinit_all();
}
};