[vlc-devel] [PATCH 2/3] omxil: improve performance

Thomas Guillem guillem at archos.com
Thu Jul 10 16:29:57 CEST 2014


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.
---
 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++)
-- 
1.7.10.4


-- 


This email and any files transmitted with it are confidential and are 
intended solely for the use of the individual or entity to which they are 
addressed. Access to this e-mail by anyone else is unauthorised. If you are 
not the intended recipient, any disclosure, copying, distribution or any 
action taken or omitted to be taken in reliance on it, is prohibited. 
E-mail messages are not necessarily secure. Archos does not accept 
responsibility for any changes made to this message after it was sent.



More information about the vlc-devel mailing list