Merge "Don't CHECK on illegal state change"

gugelfrei
Treehugger Robot 7 years ago committed by Gerrit Code Review
commit 6112189b4f

@ -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:

Loading…
Cancel
Save