---
libavcodec/framethread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/framethread.c b/libavcodec/framethread.c
index 9ac5353..0c5404a 100644
--- a/libavcodec/framethread.c
+++ b/libavcodec/framethread.c
@@ -101,7 +101,7 @@ static attribute_align_arg void *decode_frame_thread(void *arg)
p->state = STATE_INPUT_READY;
pthread_mutex_lock(&p->progress_mutex);
- pthread_cond_signal(&p->progress_cond);
+ pthread_cond_signal(&p->output_cond);
pthread_mutex_unlock(&p->progress_mutex);
pthread_mutex_unlock(&p->mutex);
};
@@ -175,7 +175,7 @@ int ff_decode_frame_threaded(AVCodecContext *avctx,
p = &fctx->threads[fctx->next_ready];
pthread_mutex_lock(&p->progress_mutex);
- while (p->state != STATE_INPUT_READY) {pthread_cond_wait(&p->progress_cond, &p->progress_mutex);}
+ while (p->state != STATE_INPUT_READY) {pthread_cond_wait(&p->output_cond, &p->progress_mutex);}
pthread_mutex_unlock(&p->progress_mutex);
fctx->next_ready++;
@@ -322,7 +322,7 @@ void ff_frame_thread_flush(AVCodecContext *avctx)
PerThreadContext *p = &fctx->threads[i];
pthread_mutex_lock(&p->progress_mutex);
- while (p->state != STATE_INPUT_READY) pthread_cond_wait(&p->progress_cond, &p->progress_mutex);
+ while (p->state != STATE_INPUT_READY) pthread_cond_wait(&p->output_cond, &p->progress_mutex);
pthread_mutex_unlock(&p->progress_mutex);
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc