[vlc-devel] [PATCH 10/12] videotoolbox: signal that decoding is hardware-accelerated

Thomas Guillem thomas at gllm.fr
Thu Jun 9 11:52:02 CEST 2016


---
 modules/codec/videotoolbox.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 13a9f80..fb4f632 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -705,6 +705,8 @@ static int OpenDecoder(vlc_object_t *p_this)
     p_dec->pf_decode_video = DecodeBlock;
     p_dec->pf_flush        = Flush;
 
+    decoder_AddState(p_dec, DECODER_STATE_HW);
+
     msg_Info(p_dec, "Using Video Toolbox to decode '%4.4s'", (char *)&p_dec->fmt_in.i_codec);
 
     return VLC_SUCCESS;
-- 
2.8.1



More information about the vlc-devel mailing list