[vlc-devel] [PATCH 08/12] mediacodec: signal that decoding is hardware-accelerated

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


---
 modules/codec/omxil/mediacodec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 1fa5251..006eca5 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -791,6 +791,8 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
     p_dec->pf_decode_audio = DecodeAudio;
     p_dec->pf_flush        = DecodeFlush;
 
+    decoder_AddState(p_dec, DECODER_STATE_HW);
+
     return VLC_SUCCESS;
 
 bailout:
-- 
2.8.1



More information about the vlc-devel mailing list