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

Commit ee5201b4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow portMode configuration in loaded state only" into oc-mr1-dev

parents 3aedd716 ced401e5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -679,6 +679,11 @@ status_t OMXNodeInstance::setPortMode(OMX_U32 portIndex, IOMX::PortMode mode) {
        return BAD_VALUE;
    }

    if (mSailed || mNumPortBuffers[portIndex] > 0) {
        android_errorWriteLog(0x534e4554, "29422020");
        return INVALID_OPERATION;
    }

    CLOG_CONFIG(setPortMode, "%s(%d), port %d", asString(mode), mode, portIndex);

    switch (mode) {