summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vf.c')
-rw-r--r--libmpcodecs/vf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index fbaa1cf2a7..10b9fa546f 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -198,7 +198,9 @@ mp_image_t *vf_get_image(vf_instance_t *vf, unsigned int outfmt,
if (vf->put_image == vf_next_put_image) {
// passthru mode, if the filter uses the fallback/default put_image()
- 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
@@ -354,8 +356,8 @@ mp_image_t *vf_get_image(vf_instance_t *vf, unsigned int outfmt,
mpi->flags |= MP_IMGFLAG_TYPE_DISPLAYED;
}
mpi->qscale = NULL;
+ mpi->usage_count++;
}
- mpi->usage_count++;
return mpi;
}