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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user