From: Taehwan Kim Date: Tue, 29 Jan 2013 11:21:12 +0000 (+0000) Subject: vdec: fixed reinput at output problem X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9fcfcb2ca05d9808561130472dfff21ca0b8294;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_openmax.git vdec: fixed reinput at output problem even though that FillThisBuffer isn't needed when stopping drop logic, has done the FillThisBuffer. moved it to correct condition. Change-Id: Idb624ea34837beb1c89b83641c9a33454c1c168b Signed-off-by: Taehwan Kim --- diff --git a/component/video/dec/Exynos_OMX_Vdec.c b/component/video/dec/Exynos_OMX_Vdec.c index 4035302..bfc12b3 100644 --- a/component/video/dec/Exynos_OMX_Vdec.c +++ b/component/video/dec/Exynos_OMX_Vdec.c @@ -555,16 +555,16 @@ OMX_BOOL Exynos_Postprocess_OutputData(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_ pExynosComponent->checkTimeStamp.needSetStartTimeStamp = OMX_FALSE; pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_FALSE; } else { - Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "drop frame after seeking", pExynosComponent); - if (exynosOutputPort->bufferProcessType & BUFFER_SHARE) - Exynos_OMX_FillThisBuffer(pOMXComponent, outputUseBuffer->bufferHeader); - if (pExynosComponent->checkTimeStamp.startTimeStamp < dstOutputData->timeStamp) { pExynosComponent->checkTimeStamp.startTimeStamp = -19761123; pExynosComponent->checkTimeStamp.nStartFlags = 0x0; pExynosComponent->checkTimeStamp.needSetStartTimeStamp = OMX_FALSE; pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_FALSE; } else { + Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "drop frame after seeking", pExynosComponent); + if (exynosOutputPort->bufferProcessType & BUFFER_SHARE) + Exynos_OMX_FillThisBuffer(pOMXComponent, outputUseBuffer->bufferHeader); + ret = OMX_TRUE; goto EXIT; }