[vlc-devel] [PATCH 2/2] stream_output: reset add_stream_start after flushing
Alaric Senat
dev.asenat at posteo.net
Mon Feb 15 11:38:23 UTC 2021
After the flush of the muxer stream-out reset i_add_stream_start.
Otherwise, sout_MuxSendBuffer won't wait for streams according to
mux-caching in the case of a forward seek for example.
---
src/stream_output/stream_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 49ff5017e9..0d5700b6bc 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -539,7 +539,7 @@ int sout_MuxSendBuffer( sout_mux_t *p_mux, sout_input_t *p_input,
void sout_MuxFlush( sout_mux_t *p_mux, sout_input_t *p_input )
{
- VLC_UNUSED(p_mux);
+ p_mux->i_add_stream_start = VLC_TICK_INVALID;
block_FifoEmpty( p_input->p_fifo );
}
--
2.28.0
More information about the vlc-devel
mailing list