Commit d1bbefea authored by zylthinking's avatar zylthinking Committed by Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 69e6ed21
...@@ -433,7 +433,7 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data, ...@@ -433,7 +433,7 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
pthread_mutex_lock(&s->out_mutex); pthread_mutex_lock(&s->out_mutex);
if (!s->out_queue->empty()) break; if (!s->out_queue->empty()) break;
pthread_mutex_unlock(&s->out_mutex); pthread_mutex_unlock(&s->out_mutex);
if (s->source_done) { if (!s->source_done) {
usleep(10000); usleep(10000);
continue; continue;
} else { } else {
......
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