From 4d2d87e07a18739f7b053f99bc84fdb97dd2a84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Sat, 10 Oct 2020 14:05:49 +0300 Subject: [PATCH] sout rtp: implement SOUT_STREAM_IS_SYNCHRONOUS --- modules/stream_out/rtp.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 30fd5bba4a8b..68ff34b9535c 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -353,12 +353,29 @@ struct sout_stream_id_sys_t vlc_tick_t i_caching; }; +static int Control(sout_stream_t *stream, int query, va_list args) +{ + (void) stream; + + switch (query) + { + case SOUT_STREAM_IS_SYNCHRONOUS: + *va_arg(args, bool *) = true; + break; + + default: + return VLC_EGENERIC; + } + + return VLC_SUCCESS; +} + static const struct sout_stream_operations stream_ops = { - Add, Del, Send, NULL, NULL, + Add, Del, Send, Control, NULL, }; static const struct sout_stream_operations mux_ops = { - MuxAdd, MuxDel, MuxSend, NULL, NULL, + MuxAdd, MuxDel, MuxSend, Control, NULL, }; /***************************************************************************** @@ -529,7 +546,6 @@ static int Open( vlc_object_t *p_this ) p_sys->p_grab = NULL; p_stream->ops = &stream_ops; } - p_stream->pace_nocontrol = true; if( var_GetBool( p_stream, SOUT_CFG_PREFIX"sap" ) ) SDPHandleUrl( p_stream, "sap://" ); -- GitLab