Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Zhang Rui Michael Niedermayer 10 years ago
parent
commit
8a17335189
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/async.c

+ 1
- 0
libavformat/async.c View File

@@ -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;
}


Loading…
Cancel
Save