[vlc-devel] [RFC PATCH 04/10] mmal: fail if hwaccel is disabled

Thomas Guillem thomas at gllm.fr
Thu Apr 21 11:53:38 CEST 2016


---
 modules/hw/mmal/codec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index 76c1e41..fac2ee4 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -112,6 +112,9 @@ static int OpenDecoder(decoder_t *dec)
             dec->fmt_in.i_codec != VLC_CODEC_H264)
         return VLC_EGENERIC;
 
+    if (!decoder_ShouldHWAccel(dec))
+        return VLC_EGENERIC;
+
     sys = calloc(1, sizeof(decoder_sys_t));
     if (!sys) {
         ret = VLC_ENOMEM;
-- 
2.8.0.rc3



More information about the vlc-devel mailing list