Loading media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -572,18 +572,19 @@ void SoftVorbis::onQueueFilled(OMX_U32 /* portIndex */) { } void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { if (portIndex == 0 && mState != NULL) { // Make sure that the next buffer output does not still // depend on fragments from the last one decoded. if (portIndex == 0) { mInputBufferCount = 0; mNumFramesOutput = 0; mSawInputEos = false; mSignalledOutputEos = false; mNumFramesLeftOnPage = -1; if (mState != NULL) { // Make sure that the next buffer output does not still // depend on fragments from the last one decoded. vorbis_dsp_restart(mState); } } } void SoftVorbis::onReset() { mInputBufferCount = 0; Loading @@ -603,6 +604,7 @@ void SoftVorbis::onReset() { mSawInputEos = false; mSignalledOutputEos = false; mSignalledError = false; mNumFramesLeftOnPage = -1; mOutputPortSettingsChange = NONE; } Loading Loading
media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -572,18 +572,19 @@ void SoftVorbis::onQueueFilled(OMX_U32 /* portIndex */) { } void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { if (portIndex == 0 && mState != NULL) { // Make sure that the next buffer output does not still // depend on fragments from the last one decoded. if (portIndex == 0) { mInputBufferCount = 0; mNumFramesOutput = 0; mSawInputEos = false; mSignalledOutputEos = false; mNumFramesLeftOnPage = -1; if (mState != NULL) { // Make sure that the next buffer output does not still // depend on fragments from the last one decoded. vorbis_dsp_restart(mState); } } } void SoftVorbis::onReset() { mInputBufferCount = 0; Loading @@ -603,6 +604,7 @@ void SoftVorbis::onReset() { mSawInputEos = false; mSignalledOutputEos = false; mSignalledError = false; mNumFramesLeftOnPage = -1; mOutputPortSettingsChange = NONE; } Loading