From 98182c2b5765b4c9f03264bfedbd83b4a1b086d2 Mon Sep 17 00:00:00 2001 From: Ziyan Date: Fri, 16 Oct 2015 21:30:42 +0200 Subject: domx: Fix GetParameter crashing with OMX_IndexParamConsumerUsageBits Thanks to Kyle Repinski for pinpointing the issue, I just ifdef'd it and modified the return value to OMX_ErrorNotImplemented. Since OMX_IndexParamConsumerUsageBits is fairly new, we're assuming none of the current omap4 ducatis implement it. Change-Id: Ib1e26c8be36d90ef1624699a5d4107ae25794951 --- domx/domx/omx_proxy_common/src/omx_proxy_common.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/domx/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/domx/omx_proxy_common/src/omx_proxy_common.c index 1abf1eb..352640a 100644 --- a/domx/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/domx/omx_proxy_common/src/omx_proxy_common.c @@ -64,6 +64,7 @@ #include "OMX_TI_Common.h" #include "OMX_TI_Index.h" #include "OMX_TI_Core.h" +#include "OMX_IndexExt.h" /*-------program files ----------------------------------------*/ #include "omx_proxy_common.h" #include "omx_rpc.h" @@ -1484,6 +1485,12 @@ OMX_ERRORTYPE __PROXY_GetParameter(OMX_IN OMX_HANDLETYPE hComponent, } break; +#ifdef ANDROID_API_MM_OR_LATER + case OMX_IndexParamConsumerUsageBits: + eError = OMX_ErrorNotImplemented; + goto EXIT; +#endif + default: { #ifdef USE_ION -- cgit v1.1