mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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
This commit is contained in:
parent
1b57e80cb8
commit
1cb11c53b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user