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

Commit 589bee39 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 94b66227: Fix Vorbis decoder reset

* commit '94b66227':
  Fix Vorbis decoder reset
parents f749a670 94b66227
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -411,8 +411,19 @@ void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) {
}

void SoftVorbis::onReset() {
    mInputBufferCount = 0;
    mNumFramesOutput = 0;
    vorbis_dsp_restart(mState);
    if (mState != NULL) {
        vorbis_dsp_clear(mState);
        delete mState;
        mState = NULL;
    }

    if (mVi != NULL) {
        vorbis_info_clear(mVi);
        delete mVi;
        mVi = NULL;
    }
}

void SoftVorbis::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) {