libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns
This commit is contained in:
@ -104,6 +104,8 @@ public:
|
|||||||
Frame *frame;
|
Frame *frame;
|
||||||
status_t ret;
|
status_t ret;
|
||||||
|
|
||||||
|
if (s->thread_exited)
|
||||||
|
return ERROR_END_OF_STREAM;
|
||||||
pthread_mutex_lock(&s->in_mutex);
|
pthread_mutex_lock(&s->in_mutex);
|
||||||
|
|
||||||
while (s->in_queue->empty())
|
while (s->in_queue->empty())
|
||||||
|
Reference in New Issue
Block a user