Commit 23ea48f2 authored by Mohamed Naufal's avatar Mohamed Naufal

libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns

parent 09a49e89
......@@ -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())
......
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