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

Commit 94033577 authored by Dave Burke's avatar Dave Burke
Browse files

Handle reconfiguration properly.

Bug 6388957.

Change-Id: I61a86ed6fdad99497535249acda5e4a325911918
parent aeb8fd46
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -375,7 +375,7 @@ void SoftAAC2::onQueueFilled(OMX_U32 portIndex) {
         * Thus, we could not say for sure whether a stream is
         * Thus, we could not say for sure whether a stream is
         * AAC+/eAAC+ until the first data frame is decoded.
         * AAC+/eAAC+ until the first data frame is decoded.
         */
         */
        if (decoderErr == AAC_DEC_OK && mInputBufferCount <= 2) {
        if (mInputBufferCount <= 2) {
            if (mStreamInfo->sampleRate != prevSampleRate) {
            if (mStreamInfo->sampleRate != prevSampleRate) {
                // We're going to want to revisit this input buffer, but
                // We're going to want to revisit this input buffer, but
                // may have already advanced the offset. Undo that if
                // may have already advanced the offset. Undo that if