summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2014-05-24 15:23:15 +0200
committerTorsten Jager <t.jager@gmx.de>2014-05-24 15:23:15 +0200
commit80a3f2b159cce2573db45291d5aac87c83f9325e (patch)
tree9cfa50f64666767b7a9a16fd907384647aefb151 /src
parent859127091f6ed35f60ebb5b1d40bef87f9f4a8b9 (diff)
downloadxine-lib-80a3f2b159cce2573db45291d5aac87c83f9325e.tar.gz
xine-lib-80a3f2b159cce2573db45291d5aac87c83f9325e.tar.bz2
ff_video_decoder: fix multithreading #3.
This one seems to prevent "too many DR1 frames" freezes on heavy seeking.
Diffstat (limited to 'src')
-rw-r--r--src/combined/ffmpeg/ff_video_decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c
index fa354b28f..95e40abe0 100644
--- a/src/combined/ffmpeg/ff_video_decoder.c
+++ b/src/combined/ffmpeg/ff_video_decoder.c
@@ -752,6 +752,7 @@ static void init_video_codec (ff_video_decoder_t *this, unsigned int codec_type)
if( this->codec->capabilities & CODEC_CAP_DR1 && this->class->enable_dri ) {
#ifdef AV_BUFFER
this->context->get_buffer2 = get_buffer;
+ this->context->thread_safe_callbacks = 1;
#else
this->context->get_buffer = get_buffer;
this->context->release_buffer = release_buffer;