From 8f33812f854fabb86b60074d956359d04473fb85 Mon Sep 17 00:00:00 2001 From: Taehwan Kim Date: Tue, 30 Apr 2013 09:10:08 +0000 Subject: [PATCH] exynos_omx: multi_thread: Support for testCreateInputSurfaceErrors Test. mediaserver crash is resolved. Bug: 8329017 Change-Id: I6f6f160709e1e8be21a17bce2954a3e4a12d53a2 Signed-off-by: Taehwan Kim --- .../openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exynos_omx/openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c b/exynos_omx/openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c index a34ce73..e59a555 100644 --- a/exynos_omx/openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c +++ b/exynos_omx/openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c @@ -680,6 +680,10 @@ OMX_ERRORTYPE Exynos_OMX_SrcInputBufferProcess(OMX_HANDLETYPE hComponent) if ((bCheckInputData == OMX_FALSE) && (!CHECK_PORT_BEING_FLUSHED(exynosInputPort))) { ret = Exynos_InputBufferGetQueue(pExynosComponent); + if (ret != OMX_ErrorNone) { + Exynos_OSAL_MutexUnlock(srcInputUseBuffer->bufferMutex); + break; + } #ifdef USE_METADATABUFFERTYPE if ((pVideoEnc->bFirstInput == OMX_TRUE) && (!CHECK_PORT_BEING_FLUSHED(exynosInputPort))) { -- 2.20.1