[vlc-devel] [RFC PATCH 05/10] videotoolbox: fail if hwaccel is disabled
Thomas Guillem
thomas at gllm.fr
Thu Apr 21 11:53:39 CEST 2016
---
modules/codec/videotoolbox.m | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 840876e..944e0b7 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -670,6 +670,9 @@ static int OpenDecoder(vlc_object_t *p_this)
if (p_dec->fmt_in.i_cat != VIDEO_ES)
return VLC_EGENERIC;
+ if (!decoder_ShouldHWAccel(p_dec))
+ return VLC_EGENERIC;
+
/* check quickly if we can digest the offered data */
CMVideoCodecType codec;
codec = CodecPrecheck(p_dec);
--
2.8.0.rc3
More information about the vlc-devel
mailing list