summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2015-10-16 21:30:42 +0200
committerAndreas Blaesius <skate4life@gmx.de>2015-10-24 05:18:44 -0700
commit98182c2b5765b4c9f03264bfedbd83b4a1b086d2 (patch)
tree3b5a7fad098e6810fff984bdb188d0973342c919
parent6f299b69221d22556610e4cad15ea61e8b555e15 (diff)
downloadhardware_ti_omap4-98182c2b5765b4c9f03264bfedbd83b4a1b086d2.zip
hardware_ti_omap4-98182c2b5765b4c9f03264bfedbd83b4a1b086d2.tar.gz
hardware_ti_omap4-98182c2b5765b4c9f03264bfedbd83b4a1b086d2.tar.bz2
domx: Fix GetParameter crashing with OMX_IndexParamConsumerUsageBits
Thanks to Kyle Repinski <repinski23@gmail.com> 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
-rw-r--r--domx/domx/omx_proxy_common/src/omx_proxy_common.c7
1 files changed, 7 insertions, 0 deletions
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