conf: handle fatal errors with GError

Don't call g_error(), which will abort the process and dump core.

This patch does not affect all the config_get_X() functions.  These
need some more refactoring.
This commit is contained in:
Max Kellermann
2009-09-24 21:40:07 +02:00
parent f3739a73af
commit 06d5d4b03e
7 changed files with 136 additions and 58 deletions

View File

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