Sometimes, OpenMAX do not use Specific output buffer.
This buffer was return from MFC after EOS.
That Buffer will be free at finish time.(It Is not a memory leak.)
But, Buffer is not used.
This patch is solved that problem.
Depends On
- Change I5090887e: openmax: Buffer flag processing scheme change after EOS.
Change-Id: I8bcdecb8d0dc12ac985af44283412a543e219f84
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
((outputUseBuffer->nFlags & OMX_BUFFERFLAG_EOS) == OMX_BUFFERFLAG_EOS) ||
(CHECK_PORT_BEING_FLUSHED(exynosOutputPort)))
Exynos_OutputBufferReturn(pOMXComponent, outputUseBuffer);
+ else
+ Exynos_OMX_FillThisBuffer(pOMXComponent, outputUseBuffer->bufferHeader);
}
} else {
ret = OMX_FALSE;
((outputUseBuffer->nFlags & OMX_BUFFERFLAG_EOS) == OMX_BUFFERFLAG_EOS) ||
(CHECK_PORT_BEING_FLUSHED(exynosOutputPort)))
Exynos_OutputBufferReturn(pOMXComponent, outputUseBuffer);
+ else
+ Exynos_OMX_FillThisBuffer(pOMXComponent, outputUseBuffer->bufferHeader);
}
} else {
ret = OMX_FALSE;