decoder_list: added configuration option to disable decoder plugins
This commit is contained in:
parent
6cfacc778c
commit
1f88cd73d4
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ ver 0.15 - (200?/??/??)
|
||||||
- sidplay: new decoder plugin for C64 SID (using libsidplay2)
|
- sidplay: new decoder plugin for C64 SID (using libsidplay2)
|
||||||
- fluidsynth: new decoder plugin for MIDI files (using libfluidsynth)
|
- fluidsynth: new decoder plugin for MIDI files (using libfluidsynth)
|
||||||
- wildmidi: another decoder plugin for MIDI files (using libwildmidi)
|
- wildmidi: another decoder plugin for MIDI files (using libwildmidi)
|
||||||
|
- added configuration option to disable decoder plugins
|
||||||
* audio outputs:
|
* audio outputs:
|
||||||
- shout: enlarged buffer size to 32 kB
|
- shout: enlarged buffer size to 32 kB
|
||||||
- null: allow disabling synchronization
|
- null: allow disabling synchronization
|
||||||
|
|
|
@ -218,6 +218,10 @@ void decoder_plugin_init_all(void)
|
||||||
const struct config_param *param =
|
const struct config_param *param =
|
||||||
decoder_plugin_config(plugin->name);
|
decoder_plugin_config(plugin->name);
|
||||||
|
|
||||||
|
if (!config_get_block_bool(param, "enabled", true))
|
||||||
|
/* the plugin is disabled in mpd.conf */
|
||||||
|
continue;
|
||||||
|
|
||||||
if (decoder_plugin_init(plugin, param))
|
if (decoder_plugin_init(plugin, param))
|
||||||
decoder_plugins_enabled[i] = true;
|
decoder_plugins_enabled[i] = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue