vdec: fixed reinput at output problem
authorTaehwan Kim <t_h.kim@samsung.com>
Tue, 29 Jan 2013 11:21:12 +0000 (11:21 +0000)
committerTaehwan Kim <t_h.kim@samsung.com>
Wed, 30 Jan 2013 07:38:14 +0000 (07:38 +0000)
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 <t_h.kim@samsung.com>
component/video/dec/Exynos_OMX_Vdec.c

index 40353021f60a2d7a12321346c437e1675f378f06..bfc12b364c957452c4c015c0e567c4919abe9179 100644 (file)
@@ -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;
                 }