From: Chong Zhang Date: Wed, 15 May 2013 22:45:11 +0000 (-0700) Subject: exynos_omx: : fail storeMetaDataInBuffers on output port X-Git-Tag: cm-11.0-XNPH22R-bacon-03d77315ea~1^2~37^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a5640e7ec8b34a02c4b0c0dfd20f5b191f8875e;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git exynos_omx: : fail storeMetaDataInBuffers on output port Metadata mode is not supported yet on output port. Bug: 8987541 Change-Id: Ia9b88ee9e4535194b40dca143a188ad19af36ccc --- diff --git a/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp b/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp index 3a823f6..17d410f 100644 --- a/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp +++ b/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp @@ -512,6 +512,12 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( goto EXIT; } + if (portIndex == OUTPUT_PORT_INDEX) { + Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "%s: metadata is not supported on output port", __func__); + ret = OMX_ErrorBadPortIndex; + goto EXIT; + } + pExynosPort = &pExynosComponent->pExynosPort[portIndex]; if (CHECK_PORT_TUNNELED(pExynosPort) && CHECK_PORT_BUFFER_SUPPLIER(pExynosPort)) { ret = OMX_ErrorBadPortIndex;