summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-12-17 16:35:08 -0800
committerMarco Nelissen <marcone@google.com>2012-12-18 15:16:00 -0800
commit1c80821b0720175478981ac43e7ca9567b58b7c5 (patch)
tree7c1b98f98f50826073f49a952162ce07e0ed322f /media/libstagefright/omx
parent34d7db5dd43000cac7e8e156d79e9f97ccbb8990 (diff)
downloadframeworks_av-1c80821b0720175478981ac43e7ca9567b58b7c5.zip
frameworks_av-1c80821b0720175478981ac43e7ca9567b58b7c5.tar.gz
frameworks_av-1c80821b0720175478981ac43e7ca9567b58b7c5.tar.bz2
Make codecs reconfigurable
Change-Id: I3dd46cb4401493becbf6152f4dcd5a8f1e9a0b44
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r--media/libstagefright/omx/SimpleSoftOMXComponent.cpp8
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);
}
}