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

Commit 6112189b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Don't CHECK on illegal state change"

parents c71583ee f75a2aeb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -454,7 +454,12 @@ void SimpleSoftOMXComponent::onChangeState(OMX_STATETYPE state) {
        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) {
        case OMX_StateLoaded: