diff options
author | Sarthak Aggarwal <sarthak@ti.com> | 2011-10-20 10:06:14 +0530 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-10-19 21:52:36 -0700 |
commit | cd24c84966f2abddfb1f4ffba30f500e5fc63db3 (patch) | |
tree | db67fac78cfc74b1e297281e3d972ccf5f43f397 | |
parent | 70e04f3b54d5100621ffa631dbc81579d2cc3c8c (diff) | |
download | hardware_ti_omap4xxx-cd24c84966f2abddfb1f4ffba30f500e5fc63db3.zip hardware_ti_omap4xxx-cd24c84966f2abddfb1f4ffba30f500e5fc63db3.tar.gz hardware_ti_omap4xxx-cd24c84966f2abddfb1f4ffba30f500e5fc63db3.tar.bz2 |
Send correct pBuffer to IL client in EOS case too.
Change-Id: I098a1e51eb56a7c6e54c5393dc2952e48f740605
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
related-to-bug: 5485643
-rw-r--r-- | domx/omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c | 2 | ||||
-rw-r--r-- | domx/omx_proxy_component/omx_mpeg4_enc/src/omx_proxy_mpeg4enc.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/domx/omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c b/domx/omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c index bb17cba..ec998f6 100644 --- a/domx/omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c +++ b/domx/omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c @@ -551,7 +551,7 @@ OMX_ERRORTYPE LOCAL_PROXY_H264E_EmptyThisBuffer(OMX_HANDLETYPE hComponent, OMX_ERRORTYPE eError = OMX_ErrorNone; PROXY_COMPONENT_PRIVATE *pCompPrv; OMX_COMPONENTTYPE *hComp = (OMX_COMPONENTTYPE *) hComponent; - OMX_PTR pBufferOrig = NULL; + OMX_PTR pBufferOrig = pBufferHdr->pBuffer; OMX_U32 nStride = 0, nNumLines = 0; OMX_PARAM_PORTDEFINITIONTYPE tParamStruct; OMX_U32 nFilledLen, nAllocLen; diff --git a/domx/omx_proxy_component/omx_mpeg4_enc/src/omx_proxy_mpeg4enc.c b/domx/omx_proxy_component/omx_mpeg4_enc/src/omx_proxy_mpeg4enc.c index e08839a..b6a6431 100644 --- a/domx/omx_proxy_component/omx_mpeg4_enc/src/omx_proxy_mpeg4enc.c +++ b/domx/omx_proxy_component/omx_mpeg4_enc/src/omx_proxy_mpeg4enc.c @@ -534,7 +534,7 @@ OMX_ERRORTYPE LOCAL_PROXY_MPEG4E_EmptyThisBuffer(OMX_HANDLETYPE hComponent, OMX_ERRORTYPE eError = OMX_ErrorNone; PROXY_COMPONENT_PRIVATE *pCompPrv; OMX_COMPONENTTYPE *hComp = (OMX_COMPONENTTYPE *) hComponent; - OMX_PTR pBufferOrig = NULL; + OMX_PTR pBufferOrig = pBufferHdr->pBuffer; OMX_U32 nStride = 0, nNumLines = 0; OMX_PARAM_PORTDEFINITIONTYPE tParamStruct; OMX_U32 nFilledLen, nAllocLen; @@ -673,7 +673,11 @@ OMX_ERRORTYPE LOCAL_PROXY_MPEG4E_EmptyThisBuffer(OMX_HANDLETYPE hComponent, } #endif if( pCompPrv->proxyPortBuffers[pBufferHdr->nInputPortIndex].proxyBufferType == EncoderMetadataPointers) + { pBufferHdr->pBuffer = pBufferOrig; + pBufferHdr->nFilledLen = nFilledLen; + pBufferHdr->nAllocLen = nAllocLen; + } EXIT: return eError; |