Loading media/libstagefright/omx/SimpleSoftOMXComponent.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -469,6 +469,13 @@ void SimpleSoftOMXComponent::onPortEnable(OMX_U32 portIndex, bool enable) { CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE); CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE); CHECK(port->mDef.bEnabled == !enable); CHECK(port->mDef.bEnabled == !enable); if (port->mDef.eDir != OMX_DirOutput) { ALOGE("Port enable/disable allowed only on output ports."); notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL); android_errorWriteLog(0x534e4554, "29421804"); return; } if (!enable) { if (!enable) { port->mDef.bEnabled = OMX_FALSE; port->mDef.bEnabled = OMX_FALSE; port->mTransition = PortInfo::DISABLING; port->mTransition = PortInfo::DISABLING; Loading Loading
media/libstagefright/omx/SimpleSoftOMXComponent.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -469,6 +469,13 @@ void SimpleSoftOMXComponent::onPortEnable(OMX_U32 portIndex, bool enable) { CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE); CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE); CHECK(port->mDef.bEnabled == !enable); CHECK(port->mDef.bEnabled == !enable); if (port->mDef.eDir != OMX_DirOutput) { ALOGE("Port enable/disable allowed only on output ports."); notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL); android_errorWriteLog(0x534e4554, "29421804"); return; } if (!enable) { if (!enable) { port->mDef.bEnabled = OMX_FALSE; port->mDef.bEnabled = OMX_FALSE; port->mTransition = PortInfo::DISABLING; port->mTransition = PortInfo::DISABLING; Loading