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

Commit 0742a394 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "libstagefright: Reset the decoder while performing seek"

parents 95838821 da91578d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -435,7 +435,14 @@ void SoftAMR::onQueueFilled(OMX_U32 /* portIndex */) {
    }
}

void SoftAMR::onPortFlushCompleted(OMX_U32 /* portIndex */) {
void SoftAMR::onPortFlushCompleted(OMX_U32 portIndex) {
    ALOGE("onPortFlushCompleted portindex %d, resetting frame ",portIndex);
    if (portIndex == 0) {
        if(mMode == MODE_NARROW)
           Speech_Decode_Frame_reset(mState);
        else
           pvDecoder_AmrWb_Reset(mState, 0);
    }
}

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