From 29241c4f835797f635816a9f37528aa981f722b5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Sep 2011 21:06:12 +0200 Subject: input_plugin: add method check() To check for errors without reading. The decoder thread wants to do that, before it passes the input stream to the plugin. --- test/run_input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/run_input.c b/test/run_input.c index c00698dff..651d36480 100644 --- a/test/run_input.c +++ b/test/run_input.c @@ -100,6 +100,12 @@ dump_input_stream(struct input_stream *is) break; } + if (!input_stream_check(is, &error)) { + g_warning("%s", error->message); + g_error_free(error); + return EXIT_FAILURE; + } + return 0; } -- cgit v1.2.3