[MPlayer-cvslog] r33286 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Fri Apr 22 09:58:06 CEST 2011
Author: reimar
Date: Fri Apr 22 09:58:06 2011
New Revision: 33286
Log:
Allow reget_buffer to somewhat work after DRI failure.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Fri Apr 22 09:53:12 2011 (r33285)
+++ trunk/libmpcodecs/vd_ffmpeg.c Fri Apr 22 09:58:06 2011 (r33286)
@@ -624,6 +624,9 @@ static int get_buffer(AVCodecContext *av
if(init_vo(sh, avctx->pix_fmt) < 0){
avctx->release_buffer= avcodec_default_release_buffer;
avctx->get_buffer= avcodec_default_get_buffer;
+ avctx->reget_buffer= avcodec_default_reget_buffer;
+ if (pic->data[0])
+ release_buffer(avctx, pic);
return avctx->get_buffer(avctx, pic);
}
@@ -636,6 +639,9 @@ static int get_buffer(AVCodecContext *av
ctx->do_dr1=0; //FIXME
avctx->get_buffer= avcodec_default_get_buffer;
+ avctx->reget_buffer= avcodec_default_reget_buffer;
+ if (pic->data[0])
+ release_buffer(avctx, pic);
return avctx->get_buffer(avctx, pic);
}
More information about the MPlayer-cvslog
mailing list