From a11ea8ea74a76357f04af5756b45b1e2f754b911 Mon Sep 17 00:00:00 2001 From: Sejun Park Date: Tue, 4 Sep 2018 11:29:37 +0900 Subject: [PATCH] missing unlock : Returning without unlocking Change-Id: If7784b337df813e31df2dcd570f18b95c181c121 --- openmax/component/video/enc/Exynos_OMX_VencControl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmax/component/video/enc/Exynos_OMX_VencControl.c b/openmax/component/video/enc/Exynos_OMX_VencControl.c index e8846f4..1d1cfba 100755 --- a/openmax/component/video/enc/Exynos_OMX_VencControl.c +++ b/openmax/component/video/enc/Exynos_OMX_VencControl.c @@ -747,7 +747,7 @@ OMX_ERRORTYPE Exynos_OMX_BufferFlush( ret = Exynos_OMX_FlushPort(pOMXComponent, nPortIndex); if (ret != OMX_ErrorNone) - goto EXIT; + goto MUTEX_EXIT; if (pExynosPort->bufferProcessType & BUFFER_COPY) pVideoEnc->exynos_codec_enqueueAllBuffer(pOMXComponent, nPortIndex); @@ -783,6 +783,7 @@ OMX_ERRORTYPE Exynos_OMX_BufferFlush( #endif } +MUTEX_EXIT: if (pDataBuffer[1] != NULL) Exynos_OSAL_MutexUnlock(pDataBuffer[1]->bufferMutex); -- 2.7.4