]> git.sesse.net Git - vlc/commitdiff
omxil: ignore software codecs
authorMing Hu <tewilove@gmail.com>
Thu, 29 Sep 2011 10:16:54 +0000 (12:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 29 Sep 2011 10:16:54 +0000 (12:16 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c

index a032850cf0c61cd9534cb528c6fc7a4f7082210f..fd272bf3e22f98f4a9fe1bb974e3d2c927abddf3 100644 (file)
@@ -860,8 +860,14 @@ static int OpenGeneric( vlc_object_t *p_this, bool b_encode )
     }
 
     /* Try to load and initialise a component */
+    omx_error = OMX_ErrorUndefined;
     for(i = 0; i < p_sys->components; i++)
     {
+#ifdef __ANDROID__
+        /* ignore OpenCore software codecs */
+        if (!strncmp(p_sys->ppsz_components[i], "OMX.PV.", 7))
+            continue;
+#endif
         omx_error = InitialiseComponent(p_dec, p_sys->ppsz_components[i],
                                         &p_sys->omx_handle);
         if(omx_error == OMX_ErrorNone) break;