From ecc975d089a16c7dd23bbd9afb71e646a690aff8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Dec 2020 12:14:53 +0100 Subject: [PATCH] pulse-server: make sure our buffers are large enough Allocate the buffers a bit larger so that we can handle a client that sends a bit more data and we don't underrun. --- src/modules/module-protocol-pulse/pulse-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index c2c8d6957..9f3fcc82b 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1248,8 +1248,8 @@ static const struct spa_pod *get_buffers_param(struct stream *s, stride = s->frame_size; if (s->direction == PW_DIRECTION_OUTPUT) { - maxsize = attr->tlength; - size = attr->minreq; + maxsize = attr->tlength * 2; + size = attr->minreq * 2; } else { size = attr->fragsize; maxsize = attr->fragsize * MAX_BUFFERS;