diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 13:24:17 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 13:24:17 +0000 |
commit | 5d21955bb1d85313eab8e445a61349f2822bd564 (patch) | |
tree | 078dfad56b26fd9f458bd4fc0f61b9af0d0f0c6f /libmpcodecs/vd_ffmpeg.c | |
parent | 9275737b40b434e9c043c73f745f774c9c055c42 (diff) | |
download | mpv-5d21955bb1d85313eab8e445a61349f2822bd564.tar.bz2 mpv-5d21955bb1d85313eab8e445a61349f2822bd564.tar.xz |
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
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index d91c9dab61..75dc4a1538 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -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){ |