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.
This commit is contained in:
Wim Taymans 2020-12-04 12:14:53 +01:00
parent 635a378ca4
commit ecc975d089

View file

@ -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;