exynos_omx: multi_thread: Support for testCreateInputSurfaceErrors Test.
authorTaehwan Kim <t_h.kim@samsung.com>
Tue, 30 Apr 2013 09:10:08 +0000 (09:10 +0000)
committerGreg Hackmann <ghackmann@google.com>
Tue, 30 Apr 2013 17:10:30 +0000 (10:10 -0700)
mediaserver crash is resolved.

Bug: 8329017

Change-Id: I6f6f160709e1e8be21a17bce2954a3e4a12d53a2
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
exynos_omx/openmax/exynos_omx/component/video/enc/Exynos_OMX_Venc.c

index a34ce73c841dd7649724b67122512b311f9d329d..e59a555f69886c715b4992e0be896dd97e4bf129 100644 (file)
@@ -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))) {