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 1a29024..fa8637e 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);