From: Taehwan Kim Date: Mon, 12 Nov 2012 05:52:36 +0000 (+0000) Subject: common: added signal abendStateEvent if componentInit fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf7a601b3c98dbafb3cc78ff0d9525182b7a6a93;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_openmax.git common: added signal abendStateEvent if componentInit fails This patch fixes the ANR at reset/release time, caused by some failures in initializing component. Change-Id: I45e560068e91fb2441a3c316a3c0f293b28b15ff Signed-off-by: Taehwan Kim --- diff --git a/component/common/Exynos_OMX_Basecomponent.c b/component/common/Exynos_OMX_Basecomponent.c index aeb92d5..8785a51 100644 --- a/component/common/Exynos_OMX_Basecomponent.c +++ b/component/common/Exynos_OMX_Basecomponent.c @@ -201,7 +201,7 @@ OMX_ERRORTYPE Exynos_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX Exynos_OMX_Release_Resource(pOMXComponent); } - Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "destState: %d", destState); + Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "destState: %d currentState: %d", destState, currentState); switch (destState) { case OMX_StateInvalid: switch (currentState) { @@ -362,6 +362,8 @@ OMX_ERRORTYPE Exynos_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX /* * if (CHECK_PORT_TUNNELED == OMX_TRUE) thenTunnel Buffer Free */ + Exynos_OSAL_SignalSet(pExynosComponent->abendStateEvent); + Exynos_OMX_Release_Resource(pOMXComponent); goto EXIT; } if (pExynosComponent->bMultiThreadProcess == OMX_FALSE) {