changeset 34863:04cd132753bc

vf_ass: fix running out of images and crashing. This would happen when running direct rendering with MP_IMGTYPE_NUMBERED.
author reimar
date Mon, 21 May 2012 20:00:01 +0000
parents e28caa1840a0
children 7af545739044
files libmpcodecs/vf_ass.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c	Mon May 21 19:59:59 2012 +0000
+++ b/libmpcodecs/vf_ass.c	Mon May 21 20:00:01 2012 +0000
@@ -168,6 +168,8 @@
             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)