From b2b21f0f5af83067e4187bd76b0c7ce3b3f60bb8 Mon Sep 17 00:00:00 2001 From: Gabriel Guerrero Hernandez Date: Wed, 30 Nov 2011 11:12:32 -0600 Subject: Properly assering errors in PROXY_checkRpcError Adding PROXY_ASSERT to ensure going to EXIT tag in every function in case of error from RPC layer. Discovered in call from PROXY_UseBuffer where even with error from RPC we were going ahead and update buffer number and updating with garbage pointer. Other cases that get affected are: OMX_ProxyCommonInit, PROXY_UseBuffer, PROXY_AllocateBuffer and RPC_UTIL_GetStride Signed-off-by: Gabriel Guerrero Hernandez --- domx/omx_proxy_common/src/omx_proxy_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'domx') diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c index 65f5e7f..d593e4d 100644 --- a/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/omx_proxy_common/src/omx_proxy_common.c @@ -176,6 +176,7 @@ char Core_Array[][MAX_CORENAME_LENGTH] = default: \ eError = OMX_ErrorUndefined; \ } \ + PROXY_assert((eError == OMX_ErrorNone), eError, "Error returned from OMX API in ducati"); \ } \ } while(0) -- cgit v1.1