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 /test/read_tags.c | |
parent | f70d2f58a1ac221d488a4fbb2fda39d83048ec53 (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.c | 8 |
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); |