From 786c1f035f99f3a396dfd52a469601163de3e9af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Dec 2009 22:29:46 +0100 Subject: 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. --- test/run_input.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/run_input.c') diff --git a/test/run_input.c b/test/run_input.c index 6aba41e8c..88202063f 100644 --- a/test/run_input.c +++ b/test/run_input.c @@ -41,6 +41,7 @@ my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level, int main(int argc, char **argv) { struct input_stream is; + GError *error = NULL; bool success; char buffer[4096]; size_t num_read; @@ -60,7 +61,12 @@ int main(int argc, char **argv) tag_pool_init(); config_global_init(); - input_stream_global_init(); + + if (!input_stream_global_init(&error)) { + g_warning("%s", error->message); + g_error_free(error); + return 2; + } /* open the stream and wait until it becomes ready */ -- cgit v1.2.3