Skip to content
Snippets Groups Projects
Commit ef230f41 authored by Thomas Guillem's avatar Thomas Guillem Committed by Martin Storsjö
Browse files

iomx-dr: split IOMXHWBuffer_Setup function


In HwBuffer, split Setup into Setup, GetMinUndequeued and SetBufferCount since
we want to control the buffer count logic from omxil.c.

Some OMX components (like OMX.TI.*.Decoder) may have nBufferCountActual that is
greater than nBufferCountMin + min_undequeued. In that case we decreased the
number of buffer wanted by the component and had an undefined behavior.

In order to fix it, we need to increase nBufferCountActual value from the
component only when it's smaller than nBufferCountMin + min_undequeued.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent f9182874
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment