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

Commit 80f8f542 authored by Chih-yu Huang's avatar Chih-yu Huang Committed by Automerger Merge Worker
Browse files

Merge "CCodec: log the component name when the codec is stuck" into sc-dev am: 62672df4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/13824419

Change-Id: I7d4a1b9e7d3310c0683b9fd463130949b59bb793
parents 2e12745d 62672df4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2311,7 +2311,13 @@ void CCodec::initiateReleaseIfStuck() {
        return;
    }

    ALOGW("previous call to %s exceeded timeout", name.c_str());
    C2String compName;
    {
        Mutexed<State>::Locked state(mState);
        compName = state->comp->getName();
    }
    ALOGW("[%s] previous call to %s exceeded timeout", compName.c_str(), name.c_str());

    initiateRelease(false);
    mCallback->onError(UNKNOWN_ERROR, ACTION_CODE_FATAL);
}