pulse-server: ensure latency is multiple of frame_size

This commit is contained in:
Wim Taymans 2021-11-05 13:30:29 +01:00
parent 01de0b966a
commit 6ca297797f

View file

@ -410,6 +410,8 @@ static uint32_t fix_playback_buffer_attr(struct stream *s, struct buffer_attr *a
else else
latency = attr->minreq; latency = attr->minreq;
latency -= latency % frame_size;
if (attr->tlength >= latency) if (attr->tlength >= latency)
attr->tlength -= latency; attr->tlength -= latency;
} else { } else {