[vlc-commits] sout: transcode: handle controls
Francois Cartegnie
git at videolan.org
Wed Aug 29 17:11:55 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 29 16:31:06 2018 +0200| [6e6b5c8a701002eda374499f0a84ac4ffc36277b] | committer: Francois Cartegnie
sout: transcode: handle controls
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e6b5c8a701002eda374499f0a84ac4ffc36277b
---
modules/stream_out/transcode/transcode.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 3b8248de5c..900707e29a 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -356,6 +356,19 @@ static void SetSPUEncoderConfig( sout_stream_t *p_stream, transcode_encoder_conf
free( psz_string );
}
+/*****************************************************************************
+ * Control
+ *****************************************************************************/
+static int Control( sout_stream_t *p_stream, int i_query, va_list args )
+{
+ switch( i_query )
+ {
+ case SOUT_STREAM_EMPTY:
+ if( p_stream->p_next )
+ return sout_StreamControlVa( p_stream->p_next, i_query, args );
+ }
+ return VLC_EGENERIC;
+}
/*****************************************************************************
* Open:
@@ -445,6 +458,7 @@ static int Open( vlc_object_t *p_this )
p_stream->pf_add = Add;
p_stream->pf_del = Del;
p_stream->pf_send = Send;
+ p_stream->pf_control = Control;
p_stream->p_sys = p_sys;
return VLC_SUCCESS;
More information about the vlc-commits
mailing list