changeset 33869:9b59c0e0948c

Fix neverending "DRI Failure" messages with frame multithreading.
author reimar
date Tue, 09 Aug 2011 19:15:19 +0000
parents 1714e25ded23
children 15e182c07689
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Aug 09 18:53:43 2011 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue Aug 09 19:15:19 2011 +0000
@@ -651,7 +651,11 @@
             mp_msg(MSGT_DECVIDEO, MSGL_WARN, MSGTR_MPCODECS_DRIFailure);
 
             ctx->do_dr1=0; //FIXME
+            // For frame-multithreading these contexts aren't
+            // the same and must both be updated.
+            ctx->avctx->get_buffer=
             avctx->get_buffer= avcodec_default_get_buffer;
+            ctx->avctx->reget_buffer=
             avctx->reget_buffer= avcodec_default_reget_buffer;
             if (pic->data[0])
                 release_buffer(avctx, pic);