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

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

Merge "SoftAvc: Fix input offset reset during port reconfiguration"

parents 731ed3c4 ca1cd541
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ status_t SoftAVC::setParams(size_t stride) {
status_t SoftAVC::resetPlugin() {
    mIsInFlush = false;
    mReceivedEOS = false;
    mInputOffset = 0;

    memset(mTimeStamps, 0, sizeof(mTimeStamps));
    memset(mTimeStampsValid, 0, sizeof(mTimeStampsValid));

@@ -334,6 +334,7 @@ void SoftAVC::onReset() {
    SoftVideoDecoderOMXComponent::onReset();

    mSignalledError = false;
    mInputOffset = 0;
    resetDecoder();
    resetPlugin();
}
@@ -465,7 +466,8 @@ void SoftAVC::onPortFlushCompleted(OMX_U32 portIndex) {
            free(mFlushOutBuffer);
            mFlushOutBuffer = NULL;
        }

    } else {
        mInputOffset = 0;
    }
}