Commit a9255d37 authored by Michael Niedermayer's avatar Michael Niedermayer

threads: warn in case of multiple finished setup calls.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 360a3d89
......@@ -599,6 +599,10 @@ void ff_thread_finish_setup(AVCodecContext *avctx) {
if (!(avctx->active_thread_type&FF_THREAD_FRAME)) return;
if(p->state == STATE_SETUP_FINISHED){
av_log(avctx, AV_LOG_WARNING, "Multiple ff_thread_finish_setup() calls\n");
}
pthread_mutex_lock(&p->progress_mutex);
p->state = STATE_SETUP_FINISHED;
pthread_cond_broadcast(&p->progress_cond);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment