diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 4c896ceee..c683fa1d6 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -2856,7 +2856,9 @@ static void stream_flush(struct stream *stream) if (stream->type == STREAM_TYPE_PLAYBACK) { stream->write_index = stream->read_index = stream->ring.writeindex = stream->ring.readindex; - stream->missing = stream->attr.tlength; + + stream->missing = stream->attr.tlength - + SPA_MIN(stream->requested, stream->attr.tlength); if (stream->attr.prebuf > 0) stream->in_prebuf = true;