Don't CHECK on illegal state change

Bug: 36075139
Change-Id: If399c1cb83a6cf79f0e52353dce9d8142e7728c6
gugelfrei
Marco Nelissen 7 years ago
parent 69545369ee
commit f75a2aebde

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