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

Commit 3d827263 authored by Ronghua Wu's avatar Ronghua Wu
Browse files

vorbis: reset codec state after a flush

Bug: 23361053
Change-Id: I163b356935a8574b3bfff94e9bcdeff08e6e0ddb
parent fe9f9ca6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -429,6 +429,9 @@ void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) {
        // depend on fragments from the last one decoded.

        mNumFramesOutput = 0;
        mSawInputEos = false;
        mSignalledOutputEos = false;
        mNumFramesLeftOnPage = -1;
        vorbis_dsp_restart(mState);
    }
}