[vlc-commits] sout: transcode: forward highlight control

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 28 19:28:00 2018 +0200| [74983133f6b22bf2be8213ca148d09410e951dde] | committer: Francois Cartegnie

sout: transcode: forward highlight control

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

 modules/stream_out/transcode/transcode.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 900707e29a..d6550104a1 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -366,6 +366,16 @@ static int Control( sout_stream_t *p_stream, int i_query, va_list args )
         case SOUT_STREAM_EMPTY:
             if( p_stream->p_next )
                 return sout_StreamControlVa( p_stream->p_next, i_query, args );
+            break;
+        case SOUT_STREAM_ID_SPU_HIGHLIGHT:
+        {
+            sout_stream_id_sys_t *id = (sout_stream_id_sys_t *) va_arg(args, void *);
+            void *spu_hl = va_arg(args, void *);
+            if( p_stream->p_next && id->downstream_id )
+                return sout_StreamControl( p_stream->p_next, i_query,
+                                           id->downstream_id, spu_hl );
+            break;
+        }
     }
     return VLC_EGENERIC;
 }



More information about the vlc-commits mailing list