summaryrefslogtreecommitdiffstats
path: root/domx
diff options
context:
space:
mode:
authorSundar Raman <sunds@ti.com>2011-08-24 23:03:01 -0700
committerIliyan Malchev <malchev@google.com>2011-08-25 16:38:37 -0700
commit42e5d26cf9855a03eb5f1a0ea6092ff89ff01cb4 (patch)
tree5af3404150dc01191ea6bd83780f9b2ce6720ca7 /domx
parentb93aec67a3f7a66060a525a5c0d68fa0089f76c4 (diff)
downloadhardware_ti_omap4xxx-42e5d26cf9855a03eb5f1a0ea6092ff89ff01cb4.zip
hardware_ti_omap4xxx-42e5d26cf9855a03eb5f1a0ea6092ff89ff01cb4.tar.gz
hardware_ti_omap4xxx-42e5d26cf9855a03eb5f1a0ea6092ff89ff01cb4.tar.bz2
DOMX: Clear metadata data after alloc
There was stale data in the metadata buffers during initial few FBDs before omx component was ready to fill the data. Seeing this in face detection usecase where a few false rectangles are being shown when the app is first opened. Signed-off-by: Tyler Luu <tluu@ti.com> Change-Id: I442d90a2e81ed0439ea0257850abfa9e0d0da1b1 Signed-off-by: Sundar Raman <sunds@ti.com>
Diffstat (limited to 'domx')
-rw-r--r--domx/domx/omx_proxy_common/src/omx_proxy_common.c3
1 files changed, 3 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 5166811..9dc8e7c 100644
--- a/domx/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -1100,6 +1100,9 @@ static OMX_ERRORTYPE PROXY_UseBuffer(OMX_IN OMX_HANDLETYPE hComponent,
PROXY_assert(((OMX_TI_PLATFORMPRIVATE *)pBufferHeader->
pPlatformPrivate)->pMetaDataBuffer != NULL,OMX_ErrorInsufficientResources,
"MemMngr alloc call for allocating metadata buffers failed");
+ memset(((OMX_TI_PLATFORMPRIVATE *)pBufferHeader->pPlatformPrivate)->pMetaDataBuffer,
+ 0x0,
+ tMetaDataBuffer.nMetaDataSize);
((OMX_TI_PLATFORMPRIVATE *)pBufferHeader->pPlatformPrivate)->nMetaDataSize = tMetaDataBuffer.nMetaDataSize;
DOMX_DEBUG("Metadata buffer = %d",((OMX_TI_PLATFORMPRIVATE *)pBufferHeader->pPlatformPrivate)->pMetaDataBuffer);
}