From 5918d3601f5711671a6fb5ccc2f65a931aae33eb Mon Sep 17 00:00:00 2001 From: Haynes Mathew George Date: Fri, 30 Oct 2015 18:41:06 -0700 Subject: 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 --- media/libstagefright/include/SimpleSoftOMXComponent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libstagefright/include') 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); }; -- cgit v1.1