[vlc-devel] [PATCH 6/8] input: decoder: forward SPU highlight to sout

Francois Cartegnie fcvlcdev at free.fr
Wed Aug 29 18:27:55 CEST 2018


---
 src/input/decoder.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 0c7ee686b4..0de900ded2 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2554,6 +2554,9 @@ int input_DecoderSetSpuHighlight( decoder_t *dec,
     struct decoder_owner *p_owner = dec_get_owner( dec );
     assert( dec->fmt_in.i_cat == SPU_ES );
 
+    if( p_owner->p_sout_input )
+        sout_InputControl( p_owner->p_sout_input, SOUT_INPUT_SET_SPU_HIGHLIGHT, spu_hl );
+
     vlc_mutex_lock( &p_owner->lock );
     if( !p_owner->p_vout )
     {
-- 
2.14.4



More information about the vlc-devel mailing list