[vlc-commits] input: decoder: forward SPU highlight to sout

Francois Cartegnie git at videolan.org
Mon Sep 3 23:26:21 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 29 18:09:37 2018 +0200| [b66ee430eb78a9d1d79184890ae095ab1880c76e] | committer: Francois Cartegnie

input: decoder: forward SPU highlight to sout

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b66ee430eb78a9d1d79184890ae095ab1880c76e
---

 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 )
     {



More information about the vlc-commits mailing list