video_dec: Fix scheme of output metadata buffer in Decode component
authorSeungBeom Kim <sbcrux.kim@samsung.com>
Sun, 29 Mar 2015 13:55:38 +0000 (15:55 +0200)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Tue, 31 Mar 2015 17:19:13 +0000 (17:19 +0000)
Backported-from: hardware/samsung_slsi/exynos5

Change-Id: I2d9df629349469d0ad5560e513de8855aae9de03
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
component/video/dec/Exynos_OMX_Vdec.c

index 69d300f54a08233c5312380771a76037917683e7..cb32d85d06c6b49ef0cd952a649ab3bf21869a30 100644 (file)
@@ -925,6 +925,11 @@ OMX_ERRORTYPE Exynos_OMX_DstInputBufferProcess(OMX_HANDLETYPE hComponent)
                                 break;
                             }
                         }
+
+                        OMX_PTR pBufferHandle = dstInputData.bufferHeader->pBuffer;
+                        if (exynosOutputPort->bStoreMetaData == OMX_TRUE) {
+                            Exynos_OSAL_GetInfoFromMetaData(dstInputData.bufferHeader->pBuffer, &pBufferHandle);
+                        }
                         Exynos_ResetDataBuffer(dstInputUseBuffer);
                     }
                 }