summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2012-08-31 20:09:30 +0000
committerwm4 <wm4@nowhere>2012-10-30 19:50:18 +0100
commit1cb11c53b6520a27372af374a46ff11a88fe53c3 (patch)
tree465778673c7ff4085c0356f8687fadf06d903e70
parent1b57e80cb86f2a0b7127d0cd13d54529eff0fd93 (diff)
downloadmpv-1cb11c53b6520a27372af374a46ff11a88fe53c3.tar.bz2
mpv-1cb11c53b6520a27372af374a46ff11a88fe53c3.tar.xz
vf: fix usage count for passthrough-only filters
Fix usage count for passthrough-only filters. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35135 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: libmpcodecs/vf.c
-rw-r--r--libmpcodecs/vf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index 6ec932445a..3bb06446c3 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -200,7 +200,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