aboutsummaryrefslogtreecommitdiff
path: root/test/read_tags.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-14 22:29:46 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 23:16:18 +0100
commit786c1f035f99f3a396dfd52a469601163de3e9af (patch)
tree152f9a1e628d1eb8bdb0f67fa6348b88d98cfb7d /test/read_tags.c
parentf70d2f58a1ac221d488a4fbb2fda39d83048ec53 (diff)
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 'test/read_tags.c')
-rw-r--r--test/read_tags.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/read_tags.c b/test/read_tags.c
index 4a482982..647f7eac 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -129,6 +129,7 @@ print_tag(const struct tag *tag)
int main(int argc, char **argv)
{
+ GError *error = NULL;
const char *decoder_name, *path;
const struct decoder_plugin *plugin;
struct tag *tag;
@@ -147,7 +148,12 @@ int main(int argc, char **argv)
decoder_name = argv[1];
path = argv[2];
- input_stream_global_init();
+ if (!input_stream_global_init(&error)) {
+ g_warning("%s", error->message);
+ g_error_free(error);
+ return 2;
+ }
+
decoder_plugin_init_all();
plugin = decoder_plugin_from_name(decoder_name);