diff options
author | Sarthak Aggarwal <sarthak@ti.com> | 2011-08-26 06:40:38 +0530 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-26 12:39:42 -0700 |
commit | cf79f306356adb45b831a668ec6b298844e43834 (patch) | |
tree | fa449e14e671753772da8c08daaec4262cc9189d /domx | |
parent | 3035f7c1e8808faaaac48f11bb99a967dff270f6 (diff) | |
download | hardware_ti_omap4-cf79f306356adb45b831a668ec6b298844e43834.zip hardware_ti_omap4-cf79f306356adb45b831a668ec6b298844e43834.tar.gz hardware_ti_omap4-cf79f306356adb45b831a668ec6b298844e43834.tar.bz2 |
Free a ion buffer in domx only when it is allocated by DOMX
Change-Id: I1b6bb594740122c753d21eaa7a739a8e500ab57d
Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
Diffstat (limited to 'domx')
-rw-r--r-- | domx/omx_proxy_common/src/omx_proxy_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c index 9dc8e7c..a5aac98 100644 --- a/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/omx_proxy_common/src/omx_proxy_common.c @@ -1203,6 +1203,8 @@ static OMX_ERRORTYPE PROXY_FreeBuffer(OMX_IN OMX_HANDLETYPE hComponent, if (pCompPrv->tBufList[count].pBufHeader) { #ifdef USE_ION + if(pCompPrv->tBufList[count].pYBuffer) + { (void)RPC_UTIL_GetStride(pCompPrv->hRemoteComp, nPortIndex, &nStride); if (nStride == 0 && pCompPrv->bUseIon == OMX_TRUE) { @@ -1214,6 +1216,7 @@ static OMX_ERRORTYPE PROXY_FreeBuffer(OMX_IN OMX_HANDLETYPE hComponent, ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pYBuffer); pCompPrv->tBufList[count].pYBuffer = NULL; } + } #endif #ifdef ALLOCATE_TILER_BUFFER_IN_PROXY if(pCompPrv->tBufList[count].pYBuffer) |