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

Commit f75a2aeb authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Don't CHECK on illegal state change

Bug: 36075139
Change-Id: If399c1cb83a6cf79f0e52353dce9d8142e7728c6
parent 69545369
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -454,7 +454,12 @@ void SimpleSoftOMXComponent::onChangeState(OMX_STATETYPE state) {
        state = OMX_StateLoaded;
        state = OMX_StateLoaded;
    }
    }


    CHECK_EQ((int)mState, (int)mTargetState);
    if (mState != mTargetState) {
        ALOGE("State change to state %d requested while still transitioning from state %d to %d",
                state, mState, mTargetState);
        notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL);
        return;
    }


    switch (mState) {
    switch (mState) {
        case OMX_StateLoaded:
        case OMX_StateLoaded: