# HG changeset patch # User reimar # Date 1346443770 0 # Node ID f674ec17b65ba6f2e1806d3cdcad35dd22a8d19e # Parent 560a69dffd71a2f87e47ceb2b49edc41c8ca0553 Fix usage count for passthrough-only filters. diff -r 560a69dffd71 -r f674ec17b65b libmpcodecs/vf.c --- a/libmpcodecs/vf.c Fri Aug 31 20:08:44 2012 +0000 +++ b/libmpcodecs/vf.c Fri Aug 31 20:09:30 2012 +0000 @@ -296,7 +296,9 @@ if(vf->put_image==vf_next_put_image){ // passthru mode, if the filter uses the fallback/default put_image() code - return vf_get_image(vf->next,outfmt,mp_imgtype,mp_imgflag,w,h); + mpi = vf_get_image(vf->next,outfmt,mp_imgtype,mp_imgflag,w,h); + mpi->usage_count++; + return mpi; } // Note: we should call libvo first to check if it supports direct rendering