From ff99a48acfa4981b08212fb30e4e84c89631521d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Oct 2020 16:44:08 +0200 Subject: [PATCH] pulse-server: prebuf can be 0 --- src/modules/module-protocol-pulse/pulse-server.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 23e2b90f3..24bfaf0cb 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -676,7 +676,6 @@ static void fix_playback_buffer_attr(struct stream *s, struct buffer_attr *attr) if (attr->prebuf == (uint32_t) -1 || attr->prebuf > max_prebuf) attr->prebuf = max_prebuf; attr->prebuf -= attr->prebuf % frame_size; - attr->prebuf = SPA_MAX(attr->prebuf, frame_size); pw_log_info(NAME" %p: maxlength:%u tlength:%u minreq:%u prebuf:%u", s, attr->maxlength, attr->tlength, attr->minreq, attr->prebuf);