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

Commit 434a6094 authored by Chong Zhang's avatar Chong Zhang
Browse files

SoftAAC2: reset EOS status after a flush

bug:19656539
Change-Id: I27f41d885f4fd5bb5a0e29510f808fb84a0f75f3
parent b4f18f96
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -975,6 +975,7 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) {
        mBufferSizes.clear();
        mDecodedSizes.clear();
        mLastInHeader = NULL;
        mEndOfInput = false;
    } else {
        int avail;
        while ((avail = outputDelayRingBufferSamplesAvailable()) > 0) {
@@ -989,6 +990,7 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) {
            mOutputBufferCount++;
        }
        mOutputDelayRingBufferReadPos = mOutputDelayRingBufferWritePos;
        mEndOfOutput = false;
    }
}