diff options
author | Andreas Huber <andih@google.com> | 2013-06-03 15:48:11 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-06-03 15:48:11 -0700 |
commit | d94e716af0e49d775f0c0c4f36dd2c136ba5f2b2 (patch) | |
tree | 5e070c15cf8bf6fb69c1efca1866303fa99e6390 /media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp | |
parent | 7c684c622110af460025eff85082030947278430 (diff) | |
download | frameworks_av-d94e716af0e49d775f0c0c4f36dd2c136ba5f2b2.zip frameworks_av-d94e716af0e49d775f0c0c4f36dd2c136ba5f2b2.tar.gz frameworks_av-d94e716af0e49d775f0c0c4f36dd2c136ba5f2b2.tar.bz2 |
Fix our software decoders to reset (more of) their internal state
properly on a transition from idle->loaded.
Change-Id: I56ccfeef24c391e50e42b522194206e35c7ab700
related-to-bug: 9105408
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp')
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp index 020cc0a..3c15adc 100644 --- a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp +++ b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp @@ -571,6 +571,11 @@ void SoftMPEG4::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { } } +void SoftMPEG4::onReset() { + mSignalledError = false; + mOutputPortSettingsChange = NONE; +} + void SoftMPEG4::updatePortDefinitions() { OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(0)->mDef; def->format.video.nFrameWidth = mWidth; |