diff options
author | Marco Nelissen <marcone@google.com> | 2012-12-17 16:35:08 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-12-18 15:16:00 -0800 |
commit | 6fc72b01a3b67903b52f1d33b1ad5c960b5365f1 (patch) | |
tree | 329c9f306defb16fb17e085af0596bb9a6be4718 /media/libstagefright/omx/SimpleSoftOMXComponent.cpp | |
parent | 53bc0a2fc54330534330118edd5c393f39eff8ab (diff) | |
download | frameworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.zip frameworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.tar.gz frameworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.tar.bz2 |
Make codecs reconfigurable
Change-Id: I3dd46cb4401493becbf6152f4dcd5a8f1e9a0b44
Diffstat (limited to 'media/libstagefright/omx/SimpleSoftOMXComponent.cpp')
-rw-r--r-- | media/libstagefright/omx/SimpleSoftOMXComponent.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp index c79e01f..4999663 100644 --- a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp +++ b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp @@ -450,6 +450,10 @@ void SimpleSoftOMXComponent::onChangeState(OMX_STATETYPE state) { checkTransitions(); } +void SimpleSoftOMXComponent::onReset() { + // no-op +} + void SimpleSoftOMXComponent::onPortEnable(OMX_U32 portIndex, bool enable) { CHECK_LT(portIndex, mPorts.size()); @@ -581,6 +585,10 @@ void SimpleSoftOMXComponent::checkTransitions() { if (transitionComplete) { mState = mTargetState; + if (mState == OMX_StateLoaded) { + onReset(); + } + notify(OMX_EventCmdComplete, OMX_CommandStateSet, mState, NULL); } } |