filter_common: Fix error checking.
authorAndre Noll <maan@systemlinux.org>
Sun, 11 Jan 2009 22:16:01 +0000 (23:16 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 11 Jan 2009 22:16:01 +0000 (23:16 +0100)
task->error being a positive value should not be regarded as
an error condition.

filter_common.c

index df4f3bf..d83629b 100644 (file)
@@ -155,7 +155,7 @@ again:
 //             fc->eof, *fc->out_loaded, conv, conv_total);
        if (conv)
                goto again;
-       if (!*fc->input_error)
+       if (*fc->input_error >= 0)
                return;
        if (*fc->out_loaded)
                return;