[MPlayer-cvslog] r35135 - trunk/libmpcodecs/vf.c

reimar subversion at mplayerhq.hu
Fri Aug 31 22:09:30 CEST 2012


Author: reimar
Date: Fri Aug 31 22:09:30 2012
New Revision: 35135

Log:
Fix usage count for passthrough-only filters.

Modified:
   trunk/libmpcodecs/vf.c

Modified: trunk/libmpcodecs/vf.c
==============================================================================
--- trunk/libmpcodecs/vf.c	Fri Aug 31 22:08:44 2012	(r35134)
+++ trunk/libmpcodecs/vf.c	Fri Aug 31 22:09:30 2012	(r35135)
@@ -296,7 +296,9 @@ mp_image_t* vf_get_image(vf_instance_t* 
 
   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


More information about the MPlayer-cvslog mailing list