[vlc-devel] [RFC PATCH 07/10] mediacodec: fail if hwaccel is disabled
Thomas Guillem
thomas at gllm.fr
Thu Apr 21 11:53:41 CEST 2016
---
modules/codec/omxil/mediacodec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 81ba449..235c343 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -514,6 +514,9 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
|| !var_InheritBool(p_dec, CFG_PREFIX "audio")))
return VLC_EGENERIC;
+ if( !decoder_ShouldHWAccel( p_dec ))
+ return VLC_EGENERIC;
+
if (p_dec->fmt_in.i_cat == VIDEO_ES)
{
if (!p_dec->fmt_in.video.i_width || !p_dec->fmt_in.video.i_height)
--
2.8.0.rc3
More information about the vlc-devel
mailing list