exynos_omx: : fail storeMetaDataInBuffers on output port
authorChong Zhang <chz@google.com>
Wed, 15 May 2013 22:45:11 +0000 (15:45 -0700)
committerChong Zhang <chz@google.com>
Wed, 15 May 2013 22:55:56 +0000 (15:55 -0700)
Metadata mode is not supported yet on output port.

Bug: 8987541

Change-Id: Ia9b88ee9e4535194b40dca143a188ad19af36ccc

exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp

index 3a823f6c3d12ef2748f389da1f264c3964263f36..17d410f562f79fb96c0c663bf423accdac5826df 100644 (file)
@@ -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;