Skip to content
Snippets Groups Projects
Commit 8a173351 authored by Zhang Rui's avatar Zhang Rui Committed by Michael Niedermayer
Browse files

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

parent c0a4af40
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment