[vlc-commits] omxil: improve performance

Thomas Guillem git at videolan.org
Fri Jul 11 09:44:58 CEST 2014


vlc | branch: master | Thomas Guillem <guillem at 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ö <martin at 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++)



More information about the vlc-commits mailing list