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

Commit 2e589a29 authored by Patrick Pun's avatar Patrick Pun
Browse files

Reset mFatalError after media resource reclaim in ACodec

Bug: 128510430
Test: N/A
Change-Id: Ic6725c3661bdb4573b11e6a1f18985b0c971bb8c
parent 754ef596
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6817,6 +6817,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
    ALOGV("onAllocateComponent");

    CHECK(mCodec->mOMXNode == NULL);
    mCodec->mFatalError = false;

    sp<AMessage> notify = new AMessage(kWhatOMXMessageList, mCodec);
    notify->setInt32("generation", mCodec->mNodeGeneration + 1);