conf: move duplicate check to _read_name_value()

config_add_block_param() cannot fail, which makes it easier to use.
This commit is contained in:
Max Kellermann
2011-09-09 21:16:46 +02:00
parent e3eca82cc3
commit bc0fec0afe
3 changed files with 16 additions and 17 deletions

View File

@@ -75,7 +75,7 @@ int main(int argc, char **argv)
}
param = config_new_param(NULL, -1);
config_add_block_param(param, "quality", "5.0", -1, NULL);
config_add_block_param(param, "quality", "5.0", -1);
encoder = encoder_init(plugin, param, &error);
if (encoder == NULL) {