[vlc-commits] omxil: do not use iomx (Android) for audio decoding

Felix Abecassis git at videolan.org
Thu Apr 3 12:19:50 CEST 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Thu Apr  3 12:18:48 2014 +0200| [f90e9ebc5a95ba65873995540901260233e32f97] | committer: Felix Abecassis

omxil: do not use iomx (Android) for audio decoding

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f90e9ebc5a95ba65873995540901260233e32f97
---

 modules/codec/omxil/omxil.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index e3e34c4..6298cdc 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -780,6 +780,11 @@ static int OpenDecoder( vlc_object_t *p_this )
     decoder_t *p_dec = (decoder_t*)p_this;
     int status;
 
+#ifdef __ANDROID__
+    if( p_dec->fmt_in.i_cat == AUDIO_ES )
+        return VLC_EGENERIC;
+#endif
+
     if( 0 || !GetOmxRole(p_dec->fmt_in.i_codec, p_dec->fmt_in.i_cat, false) )
         return VLC_EGENERIC;
 



More information about the vlc-commits mailing list