Merge "Fix a case where the aac hardware decoder is in a transition state and refused a fillbuffer request." into froyo

This commit is contained in:
Andreas Huber
2010-04-12 11:02:27 -07:00
committed by Android (Google) Code Review

View File

@@ -2068,7 +2068,13 @@ void OMXCodec::fillOutputBuffer(BufferInfo *info) {
CODEC_LOGV("Calling fill_buffer on buffer %p", info->mBuffer);
status_t err = mOMX->fillBuffer(mNode, info->mBuffer);
CHECK_EQ(err, OK);
if (err != OK) {
CODEC_LOGE("fillBuffer failed w/ error 0x%08x", err);
setState(ERROR);
return;
}
info->mOwnedByComponent = true;
}