diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2015-10-30 18:41:06 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-11-09 09:16:36 -0800 |
commit | 5918d3601f5711671a6fb5ccc2f65a931aae33eb (patch) | |
tree | e17b028dd38472698e8ddc779a709f19071a47d4 /media/libstagefright/include | |
parent | a519bcf25b5ade710ef5bbaba68571b04f86b5e4 (diff) | |
download | frameworks_av-5918d3601f5711671a6fb5ccc2f65a931aae33eb.zip frameworks_av-5918d3601f5711671a6fb5ccc2f65a931aae33eb.tar.gz frameworks_av-5918d3601f5711671a6fb5ccc2f65a931aae33eb.tar.bz2 |
libstagefright: omx: Prevent assertion due to state mismatches
Instead handle them a bit better. Since the assertions dealt
with in this patchset can only happen if the OMX IL client died
while de-init'ing the component, it is impossible to deal with
all possible cases gracefully. Hence take an aggressive approach
by moving state of the component to OMX_StateInvalid. This looks
okay as per the spec, but might not be the best approach.
Change-Id: I3f23f5e3853523fe1a7fb3aaf38b46595fa91732
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/SimpleSoftOMXComponent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/include/SimpleSoftOMXComponent.h b/media/libstagefright/include/SimpleSoftOMXComponent.h index 591b38e..6a0a958 100644 --- a/media/libstagefright/include/SimpleSoftOMXComponent.h +++ b/media/libstagefright/include/SimpleSoftOMXComponent.h @@ -140,6 +140,7 @@ private: void onPortFlush(OMX_U32 portIndex, bool sendFlushComplete); void checkTransitions(); + void onTransitionError(); DISALLOW_EVIL_CONSTRUCTORS(SimpleSoftOMXComponent); }; |