# HG changeset patch
# User reimar
# Date 1234704257 0
# Node ID 71232187cac5902e9e121a5a11a51c5a9c81478b
# Parent  36fbf025f4dabbcc00ab245625658eaad7640f4c
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".

diff -r 36fbf025f4da -r 71232187cac5 libmpcodecs/vd_ffmpeg.c
--- 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){