changeset 28555:71232187cac5

Unset MP_IMGFLAG_IN_USE in release_buffer. This is only needed for MPI_IMGTYPE_NUMBERED support and will probably first be used for VDPAU, but it is still "the right thing to do".
author reimar
date Sun, 15 Feb 2009 13:24:17 +0000
parents 36fbf025f4da
children 85d1ab476ad5
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 13:17:04 2009 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 13:24:17 2009 +0000
@@ -667,6 +667,8 @@
             render->state&=~AV_XVMC_STATE_PREDICTION;
         }
 #endif
+        // release mpi (in case MPI_IMGTYPE_NUMBERED is used, e.g. for VDPAU)
+        mpi->flags &= ~MP_IMGFLAG_IN_USE;
     }
 
     if(pic->type!=FF_BUFFER_TYPE_USER){