From 7fe1241544eb6a2caa7dee06006f0a4f6d1412cc Mon Sep 17 00:00:00 2001 From: Zhiliang Wang Date: Thu, 11 Mar 2021 18:15:24 +0800 Subject: [PATCH] AMP: DMX: refine the logic of pushBuff for Eos case after Eos event, it needs to sync output buffer before pushing es buffer in case the residue data is missed Jira : https://synaextjira.atlassian.net/browse/LGUG-359 Cherry pick from https://sc-debu-git.synaptics.com/gerrit/#/c/150230/ Change-Id: Ifb19b8cb916edce9970675b57bb3853c23a45805 Reviewed-on: https://sc-debu-git.synaptics.com/gerrit/150230 Reviewed-by: Lingfeng Mao Reviewed-on: https://sc-debu-git.synaptics.com/gerrit/172159 Reviewed-by: Tony Kim --- diff --git a/amp/src/ddl/dmx/comp/core/src/dmx_strm_es.c b/amp/src/ddl/dmx/comp/core/src/dmx_strm_es.c index eef3dd0..1dca7c9 100755 --- a/amp/src/ddl/dmx/comp/core/src/dmx_strm_es.c +++ b/amp/src/ddl/dmx/comp/core/src/dmx_strm_es.c @@ -2248,6 +2248,8 @@ Eos = internal_IsEos(pStrm, -1); if(Eos == TRUE) { DMX_HIGH("NPM:Strm[%d] EOS Ctrl arrives\n",pStrm->uiStrmId); + /* after EOS event, it needs to sync output to get all the data*/ + DMX_Stream_SyncOutput(pStrm); } uNewCome = pStrm->uiOutDataCnt - pStream->uPushedDataCnt;