Revert "venc: added UnlockANB in FlushPort sequence"
authorTaehwan Kim <t_h.kim@samsung.com>
Tue, 18 Dec 2012 00:26:39 +0000 (00:26 +0000)
committerTaehwan Kim <t_h.kim@samsung.com>
Tue, 18 Dec 2012 00:27:17 +0000 (00:27 +0000)
This reverts commit a1b54e5db6a1ed43c0a838bd442a77f340113ab3.

Change-Id: I23ca829daa2b7842eccf2f8d5a89ff510ce97551

component/video/enc/Exynos_OMX_VencControl.c

index 8ac138f195a8d9ebd24e67e0d1dbe43c11d043e6..07794a1471fc579d10d3a27c64565ab930259592 100644 (file)
@@ -501,12 +501,6 @@ OMX_ERRORTYPE Exynos_OMX_FlushPort(
         if (pExynosPort->bufferProcessType & BUFFER_SHARE) {
             if (pExynosPort->processData.bufferHeader != NULL) {
                 if (nPortIndex == INPUT_PORT_INDEX) {
-#ifdef USE_METADATABUFFERTYPE
-                    if ((pExynosPort->bStoreMetaData == OMX_TRUE) &&
-                        (pExynosPort->portDefinition.format.video.eColorFormat == OMX_COLOR_FormatAndroidOpaque)) {
-                         Exynos_OSAL_UnlockANB(pExynosPort->processData.bufferHeader->pBuffer);
-                    }
-#endif
                     Exynos_OMX_InputBufferReturn(pOMXComponent, pExynosPort->processData.bufferHeader);
                 } else if (nPortIndex == OUTPUT_PORT_INDEX) {
                     Exynos_OMX_OutputBufferReturn(pOMXComponent, pExynosPort->processData.bufferHeader);
@@ -520,12 +514,6 @@ OMX_ERRORTYPE Exynos_OMX_FlushPort(
                         Exynos_OMX_OutputBufferReturn(pOMXComponent,
                                                       pExynosPort->extendBufferHeader[i].OMXBufferHeader);
                     } else if (nPortIndex == INPUT_PORT_INDEX) {
-#ifdef USE_METADATABUFFERTYPE
-                        if ((pExynosPort->bStoreMetaData == OMX_TRUE) &&
-                            (pExynosPort->portDefinition.format.video.eColorFormat == OMX_COLOR_FormatAndroidOpaque)) {
-                             Exynos_OSAL_UnlockANB(pExynosPort->extendBufferHeader[i].OMXBufferHeader->pBuffer);
-                        }
-#endif
                         Exynos_OMX_InputBufferReturn(pOMXComponent,
                                                      pExynosPort->extendBufferHeader[i].OMXBufferHeader);
                     }