[vlc-commits] sout: add sout_input controls

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 29 17:55:25 2018 +0200| [b616058c0ee4e2b4e0ac8ccb72d01bc21e8b025a] | committer: Francois Cartegnie

sout: add sout_input controls

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

 src/stream_output/stream_output.c | 16 ++++++++++++++++
 src/stream_output/stream_output.h |  6 ++++++
 2 files changed, 22 insertions(+)

diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 18aabd7227..70a2b1ff6c 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -215,6 +215,22 @@ bool sout_InputIsEmpty( sout_packetizer_input_t *p_input )
     return b;
 }
 
+static int sout_InputControlVa( sout_packetizer_input_t *p_input, int i_query, va_list args )
+{
+    return VLC_EGENERIC;
+}
+
+int sout_InputControl( sout_packetizer_input_t *p_input, int i_query, ... )
+{
+    va_list args;
+    int     i_result;
+
+    va_start( args, i_query );
+    i_result = sout_InputControlVa( p_input, i_query, args );
+    va_end( args );
+    return i_result;
+}
+
 void sout_InputFlush( sout_packetizer_input_t *p_input )
 {
     sout_instance_t     *p_sout = p_input->p_sout;
diff --git a/src/stream_output/stream_output.h b/src/stream_output/stream_output.h
index 38c6be5902..43a2e7dd54 100644
--- a/src/stream_output/stream_output.h
+++ b/src/stream_output/stream_output.h
@@ -49,6 +49,12 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *, const es_format_t * )
 int sout_InputDelete( sout_packetizer_input_t * );
 int sout_InputSendBuffer( sout_packetizer_input_t *, block_t* );
 bool sout_InputIsEmpty(sout_packetizer_input_t *);
+
+enum sout_input_query_e
+{
+    SOUT_INPUT_NONE,
+};
+int  sout_InputControl( sout_packetizer_input_t *, int i_query, ... );
 void sout_InputFlush( sout_packetizer_input_t * );
 
 #endif



More information about the vlc-commits mailing list