input_plugin: method init() returns errors with GError

Not used by any plugin currently, but this eliminates the g_error()
call in input_plugin_config(), so it's worth it.
This commit is contained in:
Max Kellermann
2009-12-14 22:29:46 +01:00
parent f70d2f58a1
commit 786c1f035f
9 changed files with 79 additions and 15 deletions

View File

@@ -349,7 +349,13 @@ int main(int argc, char *argv[])
client_manager_init();
replay_gain_global_init();
initNormalization();
input_stream_global_init();
if (!input_stream_global_init(&error)) {
g_warning("%s", error->message);
g_error_free(error);
return EXIT_FAILURE;
}
playlist_list_global_init();
daemonize(options.daemon);