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
commit3035f7c1e8808faaaac48f11bb99a967dff270f6 (patch)
tree7468c5241c54bfff67e3cff532216a4fab29f0fd /domx
parentec3ceda1a567696783f2abadbba822d5db81fc33 (diff)
downloadhardware_ti_omap4-3035f7c1e8808faaaac48f11bb99a967dff270f6.zip
hardware_ti_omap4-3035f7c1e8808faaaac48f11bb99a967dff270f6.tar.gz
hardware_ti_omap4-3035f7c1e8808faaaac48f11bb99a967dff270f6.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/omx_proxy_common/src/omx_proxy_common.c3
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 5166811..9dc8e7c 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/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);
}