vp8/mt: flush worker thread, not application thread context, on seek.

This prevents a crash when seeking.
(cherry picked from commit d1cf459119)
This commit is contained in:
Ronald S. Bultje
2011-07-10 21:23:09 -07:00
committed by Reinhard Tartler
parent 0156f4f9da
commit dc1b670a2c
2 changed files with 7 additions and 4 deletions

View File

@@ -1058,7 +1058,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
{
if(HAVE_PTHREADS && avctx->active_thread_type&FF_THREAD_FRAME)
ff_thread_flush(avctx);
if(avctx->codec->flush)
else if(avctx->codec->flush)
avctx->codec->flush(avctx);
}