]> git.tue.mpg.de Git - paraslash.git/commitdiff
filter: Call the convert function even if the input buffer is empty.
authorAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 23:58:03 +0000 (00:58 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 23:58:03 +0000 (00:58 +0100)
At least the ogg vorbis decoder might still produce output in this
case.

filter_chain.c

index 1a2902477c85d78b2c84739ca5c9d374f5f38a6a..fa8637efc189ed8ebae3a3f8db2a72c540713cbc 100644 (file)
@@ -124,7 +124,7 @@ again:
        conv = 0;
        FOR_EACH_FILTER_NODE(fn, fc, i) {
                struct filter *f = filters + fn->filter_num;
-               if (*loaded && fn->loaded < fn->bufsize) {
+               if (fn->loaded < fn->bufsize) {
                        size_t size, old_fn_loaded = fn->loaded;
 //                     PARA_DEBUG_LOG("fc %p loaded: %zd, calling %s convert\n",
 //                             fc, *loaded, fn->filter->name);