config/Param: split block-specific attributes to new struct ConfigBlock
The old struct config_param remains only for top-level string options.
This commit is contained in:
@@ -50,8 +50,8 @@ mixer_set_volume(gcc_unused Mixer *mixer,
|
||||
static Filter *
|
||||
load_filter(const char *name)
|
||||
{
|
||||
const config_param *param =
|
||||
config_find_block(ConfigOption::AUDIO_FILTER, "name", name);
|
||||
const auto *param = config_find_block(ConfigBlockOption::AUDIO_FILTER,
|
||||
"name", name);
|
||||
if (param == NULL) {
|
||||
fprintf(stderr, "No such configured filter: %s\n", name);
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user