Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f14c552 authored by Andreas Huber's avatar Andreas Huber
Browse files

Fix a case where the aac hardware decoder is in a transition state and refused...

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

Change-Id: I4cabd18709c29db0a2763a01cc86525ba0b0aeb7
related-to-bug: 2575976
parent 63284ede
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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;
}