vlc | branch: master | Thomas Guillem <guil...@archos.com> | Thu Jul 10 16:29:57 2014 +0200| [73e141d24789fc6332af56b25aa8054942c56163] | committer: 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: Martin Storsjö <mar...@martin.st> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73e141d24789fc6332af56b25aa8054942c56163 --- modules/codec/omxil/omxil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c index 23a4af6..99e6d2a 100644 --- a/modules/codec/omxil/omxil.c +++ b/modules/codec/omxil/omxil.c @@ -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++) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits