Disregard the EOS buffer flag while flushing or shutting down the decoder.

This commit is contained in:
Andreas Huber
2009-08-26 10:33:47 -07:00
parent 557c6ce71c
commit d7795892a5

View File

@@ -857,7 +857,8 @@ void OMXCodec::on_message(const omx_message &msg) {
CHECK_EQ(err, OK);
buffers->removeAt(i);
} else if (flags & OMX_BUFFERFLAG_EOS) {
} else if (mPortStatus[kPortIndexOutput] == ENABLED
&& (flags & OMX_BUFFERFLAG_EOS)) {
LOGV("No more output data.");
mNoMoreOutputData = true;
mBufferFilled.signal();