From: SeungBeom Kim Date: Fri, 12 Oct 2012 19:36:12 +0000 (-0700) Subject: OMX encode component has problem on "idle->execute->idle state change" without input... X-Git-Tag: cm-10.1-M1~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af4568d16d0afed7604e9496ad42e2fcf1e44fde;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git OMX encode component has problem on "idle->execute->idle state change" without input data. This patch fixes the state change (Execute to Idle) bug. related-to-bug: 7336622 Change-Id: Ied1891cbbd73c26ae635d094ab9eb043ba8ce2d6 Signed-off-by: SeungBeom Kim --- 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 8f2e926..b3b2eb9 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 @@ -662,7 +662,8 @@ OMX_ERRORTYPE Exynos_OMX_SrcInputBufferProcess(OMX_HANDLETYPE hComponent) (!CHECK_PORT_BEING_FLUSHED(exynosInputPort))) { ret = Exynos_InputBufferGetQueue(pExynosComponent); #ifdef USE_METADATABUFFERTYPE - if (pVideoEnc->bFirstInput == OMX_TRUE) { + if ((pVideoEnc->bFirstInput == OMX_TRUE) && + (!CHECK_PORT_BEING_FLUSHED(exynosInputPort))) { Exynos_OMX_ExtensionSetup(hComponent); pVideoEnc->bFirstInput = OMX_FALSE; }