Commit 73e141d2 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

omxil: improve performance

Input port handling can take some time (200ms max). During that time, a new
output buffer can be filled by OMX, so try to get a decoded frame again if we
didn't have one in the first time.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 4884ef31
......@@ -1391,6 +1391,10 @@ more_input:
*pp_block = NULL; /* Avoid being fed the same packet again */
}
/* If we don't have a p_pic from the first try. Try again */
if( !p_pic && DecodeVideoOutput( p_dec, &p_sys->out, &p_pic ) != 0 )
goto error;
reconfig:
/* Handle the PortSettingsChanged events */
for(i = 0; i < p_sys->ports; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment