You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/async: wake up main thread before exit background thread
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
c0a4af408e
commit
8a17335189
@@ -99,6 +99,7 @@ static void *async_buffer_task(void *arg)
|
|||||||
if (async_check_interrupt(h)) {
|
if (async_check_interrupt(h)) {
|
||||||
c->io_eof_reached = 1;
|
c->io_eof_reached = 1;
|
||||||
c->io_error = AVERROR_EXIT;
|
c->io_error = AVERROR_EXIT;
|
||||||
|
pthread_cond_signal(&c->cond_wakeup_main);
|
||||||
pthread_mutex_unlock(&c->mutex);
|
pthread_mutex_unlock(&c->mutex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user