diff options
author | Mohamed Naufal <naufal22@gmail.com> | 2011-10-07 17:59:29 +0530 |
---|---|---|
committer | Mohamed Naufal <naufal22@gmail.com> | 2011-10-07 18:32:31 +0530 |
commit | 23ea48f2f7caebbaac19a6a4d8c931c06e9bd2df (patch) | |
tree | ae1e41f37a306b7145efad673799b26b86df8e10 /libavcodec/libstagefright.cpp | |
parent | 09a49e8919ddd31d0255f46ad1c3d19be7bb5ed1 (diff) | |
download | ffmpeg-23ea48f2f7caebbaac19a6a4d8c931c06e9bd2df.tar.gz |
libstagefright: return EOS if CustomSource::read() is called after decode_thread() returns
Diffstat (limited to 'libavcodec/libstagefright.cpp')
-rw-r--r-- | libavcodec/libstagefright.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |