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

Commit 475300b8 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Make AAC decoder behavior after flush consistent with non-flush

Timestamps don't start at zero, but at least they're consistent.

Change-Id: I2ce9cd60655a4ece787802902b679fda01cb6182
parent 5981fc5a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -846,6 +846,7 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) {
        // but only if initialization has already happened.
        if (mInputBufferCount != 0) {
            mInputBufferCount = 1;
            mOutputBufferCount = -1;
        }
    } else {
        while (outputDelayRingBufferSamplesAvailable() > 0) {