[vlc-devel] [PATCH 1/8] sout: add sout_input controls
Francois Cartegnie
fcvlcdev at free.fr
Wed Aug 29 18:27:50 CEST 2018
---
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
--
2.14.4
More information about the vlc-devel
mailing list