Loading media/libstagefright/omx/OMXNodeInstance.cpp +4 −7 Original line number Diff line number Diff line Loading @@ -611,6 +611,10 @@ status_t OMXNodeInstance::sendCommand( // ACodec is waiting for all buffers to be returned, do NOT // submit any more buffers to the codec. bufferSource->onOmxIdle(); } else if (param == OMX_StateExecuting) { // Initiating transition from Idle -> Executing // Start submitting buffers to codec. bufferSource->onOmxExecuting(); } else if (param == OMX_StateLoaded) { // Initiating transition from Idle/Executing -> Loaded // Buffers are about to be freed. Loading Loading @@ -2367,13 +2371,6 @@ void OMXNodeInstance::onEvent( asString(event), event, arg1String, arg1, arg2String, arg2); const sp<IOMXBufferSource> bufferSource(getBufferSource()); if (bufferSource != NULL && event == OMX_EventCmdComplete && arg1 == OMX_CommandStateSet && arg2 == OMX_StateExecuting) { bufferSource->onOmxExecuting(); } // allow configuration if we return to the loaded state if (event == OMX_EventCmdComplete && arg1 == OMX_CommandStateSet Loading Loading
media/libstagefright/omx/OMXNodeInstance.cpp +4 −7 Original line number Diff line number Diff line Loading @@ -611,6 +611,10 @@ status_t OMXNodeInstance::sendCommand( // ACodec is waiting for all buffers to be returned, do NOT // submit any more buffers to the codec. bufferSource->onOmxIdle(); } else if (param == OMX_StateExecuting) { // Initiating transition from Idle -> Executing // Start submitting buffers to codec. bufferSource->onOmxExecuting(); } else if (param == OMX_StateLoaded) { // Initiating transition from Idle/Executing -> Loaded // Buffers are about to be freed. Loading Loading @@ -2367,13 +2371,6 @@ void OMXNodeInstance::onEvent( asString(event), event, arg1String, arg1, arg2String, arg2); const sp<IOMXBufferSource> bufferSource(getBufferSource()); if (bufferSource != NULL && event == OMX_EventCmdComplete && arg1 == OMX_CommandStateSet && arg2 == OMX_StateExecuting) { bufferSource->onOmxExecuting(); } // allow configuration if we return to the loaded state if (event == OMX_EventCmdComplete && arg1 == OMX_CommandStateSet Loading