Loading media/libstagefright/codecs/aacdec/SoftAAC2.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -594,6 +594,11 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) { } } void SoftAAC2::onReset() { aacDecoder_SetParam(mAACDecoder, AAC_TPDEC_CLEAR_BUFFER, 1); mIsFirst = true; } void SoftAAC2::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { if (portIndex != 1) { return; Loading media/libstagefright/codecs/aacdec/SoftAAC2.h +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ protected: virtual void onQueueFilled(OMX_U32 portIndex); virtual void onPortFlushCompleted(OMX_U32 portIndex); virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled); virtual void onReset(); private: enum { Loading media/libstagefright/codecs/mp3dec/SoftMP3.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -343,6 +343,11 @@ void SoftMP3::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { } } void SoftMP3::onReset() { pvmp3_InitDecoder(mConfig, mDecoderBuf); mIsFirst = true; } } // namespace android android::SoftOMXComponent *createSoftOMXComponent( Loading media/libstagefright/codecs/mp3dec/SoftMP3.h +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ protected: virtual void onQueueFilled(OMX_U32 portIndex); virtual void onPortFlushCompleted(OMX_U32 portIndex); virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled); virtual void onReset(); private: enum { Loading media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -410,6 +410,11 @@ void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { } } void SoftVorbis::onReset() { mNumFramesOutput = 0; vorbis_dsp_restart(mState); } void SoftVorbis::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { if (portIndex != 1) { return; Loading Loading
media/libstagefright/codecs/aacdec/SoftAAC2.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -594,6 +594,11 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) { } } void SoftAAC2::onReset() { aacDecoder_SetParam(mAACDecoder, AAC_TPDEC_CLEAR_BUFFER, 1); mIsFirst = true; } void SoftAAC2::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { if (portIndex != 1) { return; Loading
media/libstagefright/codecs/aacdec/SoftAAC2.h +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ protected: virtual void onQueueFilled(OMX_U32 portIndex); virtual void onPortFlushCompleted(OMX_U32 portIndex); virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled); virtual void onReset(); private: enum { Loading
media/libstagefright/codecs/mp3dec/SoftMP3.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -343,6 +343,11 @@ void SoftMP3::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { } } void SoftMP3::onReset() { pvmp3_InitDecoder(mConfig, mDecoderBuf); mIsFirst = true; } } // namespace android android::SoftOMXComponent *createSoftOMXComponent( Loading
media/libstagefright/codecs/mp3dec/SoftMP3.h +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ protected: virtual void onQueueFilled(OMX_U32 portIndex); virtual void onPortFlushCompleted(OMX_U32 portIndex); virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled); virtual void onReset(); private: enum { Loading
media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -410,6 +410,11 @@ void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { } } void SoftVorbis::onReset() { mNumFramesOutput = 0; vorbis_dsp_restart(mState); } void SoftVorbis::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { if (portIndex != 1) { return; Loading