When changing to Loaded from Idle,
does not clean a bufferQ at each port.
Then, possible to access old infomation
in input or output buffer getQueue function.
Change-Id: I574f9783abaaf9def7413588e2e3341602cdcc70
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Signed-off-by: Huisung Kang <hs1218.kang@samsung.com>
} else {
if (CHECK_PORT_ENABLED(pExynosPort)) {
Exynos_OSAL_SemaphoreWait(pExynosPort->unloadedResource);
+ while (Exynos_OSAL_GetElemNum(&pExynosPort->bufferQ) > 0) {
+ message = (EXYNOS_OMX_MESSAGE *)Exynos_OSAL_Dequeue(&pExynosPort->bufferQ);
+ if (message != NULL)
+ Exynos_OSAL_Free(message);
+ }
pExynosPort->portDefinition.bPopulated = OMX_FALSE;
}
}