omx: basecomponent: signal abendStateEvent if GetResource fails
authorDima Zavin <dima@android.com>
Mon, 10 Dec 2012 22:42:05 +0000 (14:42 -0800)
committerDima Zavin <dmitriyz@google.com>
Mon, 10 Dec 2012 23:18:38 +0000 (15:18 -0800)
This always happens if the user tries to do multiple encoding
sessions at the same time.

Change-Id: I464b06b170de71ae77e43f76cb6f058ae95b703c
Signed-off-by: Dima Zavin <dima@android.com>
exynos_omx/openmax/exynos_omx/component/common/Exynos_OMX_Basecomponent.c

index fac8d52b9e9a2665b3aa1ac1496d6ff1f0d2366a..e0f19aa17f66b9a9ae2041ef6240308f3b2d7e56 100644 (file)
@@ -191,6 +191,7 @@ OMX_ERRORTYPE Exynos_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX
     if ((currentState == OMX_StateLoaded) && (destState == OMX_StateIdle)) {
         ret = Exynos_OMX_Get_Resource(pOMXComponent);
         if (ret != OMX_ErrorNone) {
+            Exynos_OSAL_SignalSet(pExynosComponent->abendStateEvent);
             goto EXIT;
         }
     }