Commit 8a173351 authored by Zhang Rui's avatar Zhang Rui Committed by Michael Niedermayer

avformat/async: wake up main thread before exit background thread

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c0a4af40
......@@ -99,6 +99,7 @@ static void *async_buffer_task(void *arg)
if (async_check_interrupt(h)) {
c->io_eof_reached = 1;
c->io_error = AVERROR_EXIT;
pthread_cond_signal(&c->cond_wakeup_main);
pthread_mutex_unlock(&c->mutex);
break;
}
......
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