From 235d25316cfd5ad8a4c9c487c0882ec861edc46a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Jan 2021 16:23:24 +0100 Subject: [PATCH] pulse-server: make sure we never try to ask more than tlength --- src/modules/module-protocol-pulse/pulse-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index aaa4ee514..68c373912 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1378,6 +1378,7 @@ do_process_done(struct spa_loop *loop, send_stream_started(stream); } stream->missing += pd->playing_for + pd->underrun_for; + stream->missing = SPA_MIN(stream->missing, stream->attr.tlength); stream->playing_for += pd->playing_for; stream->underrun_for += pd->underrun_for;