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

Commit 3f1fd467 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Start submitting buffers during idle->executing transition" into main

parents a808cc46 60cf01f0
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -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.
@@ -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