Browse Source

avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
zylthinking Michael Niedermayer 10 years ago
parent
commit
d1bbefeaa7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libstagefright.cpp

+ 1
- 1
libavcodec/libstagefright.cpp View File

@@ -433,7 +433,7 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
pthread_mutex_lock(&s->out_mutex);
if (!s->out_queue->empty()) break;
pthread_mutex_unlock(&s->out_mutex);
if (s->source_done) {
if (!s->source_done) {
usleep(10000);
continue;
} else {


Loading…
Cancel
Save