From 23ea48f2f7caebbaac19a6a4d8c931c06e9bd2df Mon Sep 17 00:00:00 2001 From: Mohamed Naufal Date: Fri, 7 Oct 2011 17:59:29 +0530 Subject: libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns --- libavcodec/libstagefright.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/libstagefright.cpp') diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp index 6989357f53..7f3b785211 100644 --- a/libavcodec/libstagefright.cpp +++ b/libavcodec/libstagefright.cpp @@ -104,6 +104,8 @@ public: Frame *frame; status_t ret; + if (s->thread_exited) + return ERROR_END_OF_STREAM; pthread_mutex_lock(&s->in_mutex); while (s->in_queue->empty()) -- cgit v1.2.3