[MPlayer-cvslog] r34951 - trunk/libmpcodecs/vf_ass.c

reimar subversion at mplayerhq.hu
Mon May 21 22:00:01 CEST 2012


Author: reimar
Date: Mon May 21 22:00:01 2012
New Revision: 34951

Log:
vf_ass: fix running out of images and crashing.

This would happen when running direct rendering with
MP_IMGTYPE_NUMBERED.

Modified:
   trunk/libmpcodecs/vf_ass.c

Modified: trunk/libmpcodecs/vf_ass.c
==============================================================================
--- trunk/libmpcodecs/vf_ass.c	Mon May 21 21:59:59 2012	(r34950)
+++ trunk/libmpcodecs/vf_ass.c	Mon May 21 22:00:01 2012	(r34951)
@@ -168,6 +168,8 @@ static int prepare_image(struct vf_insta
             mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_MPCODECS_FunWhydowegetNULL);
             return 0;
         }
+        // allow reusing it after this processing
+        vf->dmpi->usage_count--;
         mpi->priv = NULL;
         // we've used DR, so we're ready...
         if (ass_top_margin)


More information about the MPlayer-cvslog mailing list