pulse-server: always send frame_size multiples of samples.

See #2421
This commit is contained in:
Wim Taymans 2022-06-02 09:05:23 +02:00
parent 64e8dee3a7
commit 2c4d36e4d0

View file

@ -1299,6 +1299,7 @@ do_process_done(struct spa_loop *loop,
while ((uint32_t)avail >= stream->attr.fragsize) {
towrite = SPA_MIN(avail, MAX_FRAGSIZE);
towrite = SPA_ROUND_DOWN(towrite, stream->frame_size);
msg = message_alloc(impl, stream->channel, towrite);
if (msg == NULL)