decoder/List: use struct ConfigData

This commit is contained in:
Max Kellermann
2018-07-17 21:31:06 +02:00
parent 9fe0585056
commit 57d77cc8a0
7 changed files with 14 additions and 10 deletions

View File

@@ -20,6 +20,7 @@
#include "config.h"
#include "DetachedSong.hxx"
#include "SongSave.hxx"
#include "config/Data.hxx"
#include "decoder/DecoderList.hxx"
#include "decoder/DecoderPlugin.hxx"
#include "fs/Path.hxx"
@@ -68,7 +69,7 @@ try {
const Path path = Path::FromFS(argv[1]);
decoder_plugin_init_all();
decoder_plugin_init_all(ConfigData());
const auto *plugin = FindContainerDecoderPlugin(path);
if (plugin == nullptr) {

View File

@@ -69,7 +69,7 @@ try {
input_stream_global_init(io_thread.GetEventLoop());
playlist_list_global_init();
decoder_plugin_init_all();
decoder_plugin_init_all(GetGlobalConfig());
/* open the playlist */

View File

@@ -18,6 +18,7 @@
*/
#include "config.h"
#include "config/Data.hxx"
#include "event/Thread.hxx"
#include "decoder/DecoderList.hxx"
#include "decoder/DecoderPlugin.hxx"
@@ -95,7 +96,7 @@ try {
input_stream_global_init(io_thread.GetEventLoop());
AtScopeExit() { input_stream_global_finish(); };
decoder_plugin_init_all();
decoder_plugin_init_all(ConfigData());
AtScopeExit() { decoder_plugin_deinit_all(); };
plugin = decoder_plugin_from_name(decoder_name);

View File

@@ -99,7 +99,7 @@ public:
ReadConfigFile(config_path);
input_stream_global_init(io_thread.GetEventLoop());
decoder_plugin_init_all();
decoder_plugin_init_all(GetGlobalConfig());
}
~GlobalInit() {