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. --- src/input_stream.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/input_stream.h') diff --git a/src/input_stream.h b/src/input_stream.h index 2901f6ea..7866562a 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -90,6 +90,15 @@ gcc_nonnull(1) void input_stream_close(struct input_stream *is); +/** + * Check for errors that may have occurred in the I/O thread. + * + * @return false on error + */ +gcc_nonnull(1) +bool +input_stream_check(struct input_stream *is, GError **error_r); + /** * Update the public attributes. Call before accessing attributes * such as "ready" or "offset". -- cgit v1.2.3