0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28590 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-02-15 13:24:17 +00:00
parent 9275737b40
commit 5d21955bb1

View File

@ -667,6 +667,8 @@ static void release_buffer(struct AVCodecContext *avctx, AVFrame *pic){
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){