diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-05 22:11:45 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-05 22:12:22 +0100 |
commit | 7a23c123c8b3b24ea61157e10b2ffd3ae44c5acf (patch) | |
tree | 1615288af12ddbe04edfed0b43f617b8e6edd2b7 /test/run_decoder.cxx | |
parent | e85b24bee0004f6e18c986fa718b2854fee57730 (diff) |
decoder/List: add RAII class
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r-- | test/run_decoder.cxx | 10 |
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(); } }; |