[vlc-devel] [RFC PATCH 06/10] omxil: fail if hwaccel is disabled
Thomas Guillem
thomas at gllm.fr
Thu Apr 21 11:53:40 CEST 2016
---
modules/codec/omxil/omxil.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index a63cb30..92dbbdf 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -1013,6 +1013,9 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_EGENERIC;
#endif
+ if( !decoder_ShouldHWAccel( p_dec ))
+ return VLC_EGENERIC;
+
if( 0 || !GetOmxRole(p_dec->fmt_in.i_codec, p_dec->fmt_in.i_cat, false) )
return VLC_EGENERIC;
--
2.8.0.rc3
More information about the vlc-devel
mailing list