diff options
author | Max Kellermann <max@duempel.org> | 2009-12-14 22:29:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-14 23:16:18 +0100 |
commit | 786c1f035f99f3a396dfd52a469601163de3e9af (patch) | |
tree | 152f9a1e628d1eb8bdb0f67fa6348b88d98cfb7d /src/main.c | |
parent | f70d2f58a1ac221d488a4fbb2fda39d83048ec53 (diff) | |
download | mpd-786c1f035f99f3a396dfd52a469601163de3e9af.tar.gz mpd-786c1f035f99f3a396dfd52a469601163de3e9af.tar.xz mpd-786c1f035f99f3a396dfd52a469601163de3e9af.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 1408f0a59..882664d49 100644 --- a/src/main.c +++ b/src/main.c @@ -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); |