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

Commit 6108cb42 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

IOMX: allow configuration after going to loaded state am: e03b2283 am:...

IOMX: allow configuration after going to loaded state am: e03b2283 am: 66b557b3 am: 59ae56a5 am: 860a1a25
am: 173bf42e

Change-Id: If12b0e8cb68c097d54c30b6f5571bc5a37e698f2
parents 30f9a74f 173bf42e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -372,8 +372,7 @@ status_t OMXNodeInstance::freeNode(OMXMaster *master) {
status_t OMXNodeInstance::sendCommand(
        OMX_COMMANDTYPE cmd, OMX_S32 param) {
    if (cmd == OMX_CommandStateSet) {
        // We do not support returning from unloaded state, so there are no configurations past
        // first StateSet command.
        // There are no configurations past first StateSet command.
        mSailed = true;
    }
    const sp<GraphicBufferSource> bufferSource(getGraphicBufferSource());
@@ -1832,6 +1831,13 @@ void OMXNodeInstance::onEvent(
            && arg2 == OMX_StateExecuting) {
        bufferSource->omxExecuting();
    }

    // allow configuration if we return to the loaded state
    if (event == OMX_EventCmdComplete
            && arg1 == OMX_CommandStateSet
            && arg2 == OMX_StateLoaded) {
        mSailed = false;
    }
}

// static