Browse Source

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

tags/n0.9
Mohamed Naufal 14 years ago
parent
commit
23ea48f2f7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/libstagefright.cpp

+ 2
- 0
libavcodec/libstagefright.cpp 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())


Loading…
Cancel
Save