[MPlayer-cvslog] r28590 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Feb 15 14:24:17 CET 2009


Author: reimar
Date: Sun Feb 15 14:24:17 2009
New Revision: 28590

Log:
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".

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 14:17:04 2009	(r28589)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 14:24:17 2009	(r28590)
@@ -667,6 +667,8 @@ static void release_buffer(struct AVCode
             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){



More information about the MPlayer-cvslog mailing list