diff options
author | Weiyin Jiang <wjiang@codeaurora.org> | 2015-11-12 17:37:34 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-30 19:01:39 -0800 |
commit | ee0fd2d8685d96ff9ca328c153a30d4e570ffa01 (patch) | |
tree | 4e6ac33df1a417fa38334a0394056594b768215a | |
parent | bbb702de207a2e10ccbeba4d9d8aa4e14b61d2cf (diff) | |
download | frameworks_av-ee0fd2d8685d96ff9ca328c153a30d4e570ffa01.zip frameworks_av-ee0fd2d8685d96ff9ca328c153a30d4e570ffa01.tar.gz frameworks_av-ee0fd2d8685d96ff9ca328c153a30d4e570ffa01.tar.bz2 |
audio: reset vorbis EOS status after a flush
vorbis decoder reports output EOS persistently once it saw input EOS,
which causes subsequent playback last for short time if application
replays the same session by seeking to elsewhere and starting decoding
again.
Reset vorbis EOS status after a flush.
CRs-Fixed: 939213
Change-Id: I90b0cafe185e1c492d21af4e94e8a41eb3eae19a
-rw-r--r-- | media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp b/media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp index c559682..3dc549e 100644 --- a/media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp +++ b/media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp @@ -419,6 +419,8 @@ void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { mNumFramesOutput = 0; vorbis_dsp_restart(mState); + mSawInputEos = false; + mSignalledOutputEos = false; } } |