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

Commit 5d81cf35 authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Don't CHECK on illegal state change" am: 6112189b am: b5a56bd5 am: 7cc75ac7

am: eafdc523

Change-Id: I4e5a3ca6133d7e272f06939e39e1af619c7d990b
parents b8172cc9 eafdc523
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -458,7 +458,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: