1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This commit is contained in:
Mohamed Naufal 2011-10-07 17:59:29 +05:30
parent 09a49e8919
commit 23ea48f2f7

View File

@ -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())