adec: added the initial part for port flush status
authorKim Sangyub <sangyub.kim@samsung.com>
Tue, 15 Jan 2013 07:46:17 +0000 (07:46 +0000)
committerKim Sangyub <sangyub.kim@samsung.com>
Tue, 15 Jan 2013 07:46:17 +0000 (07:46 +0000)
Before Input Buffer is taken from the queue, port flush status is checked,
however, the current port flush status is always false.
so added to set the initial part

Change-Id: I86c715f1df751a34fb03b52b44587193db0810ad
Signed-off-by: Kim Sangyub <sangyub.kim@samsung.com>
component/audio/dec/Exynos_OMX_Adec.c

index 9b5e7272c342685eea6d343b4b404ef24eccb8cd..597a37ca115f157e2c35c60c00c396452a81a19e 100644 (file)
@@ -956,6 +956,8 @@ OMX_ERRORTYPE Exynos_OMX_BufferFlush(OMX_COMPONENTTYPE *pOMXComponent, OMX_S32 n
 
     Exynos_OSAL_SignalSet(pExynosComponent->pauseEvent);
 
+    pExynosComponent->pExynosPort[nPortIndex].bIsPortFlushed = OMX_TRUE;
+
     pExynosPort = &pExynosComponent->pExynosPort[nPortIndex];
     Exynos_OMX_GetFlushBuffer(pExynosPort, &flushPortBuffer);