mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: don't overwrite previous towrite value
And actually take the MAX_BLOCK into account when writing samples to a client.
This commit is contained in:
parent
00a234daf2
commit
47f2b72088
1 changed files with 1 additions and 1 deletions
|
|
@ -1343,7 +1343,7 @@ do_process_done(struct spa_loop *loop,
|
|||
|
||||
while ((uint32_t)avail >= stream->attr.fragsize) {
|
||||
towrite = SPA_MIN(avail, MAX_BLOCK);
|
||||
towrite = SPA_MIN((uint32_t)avail, stream->attr.fragsize);
|
||||
towrite = SPA_MIN(towrite, stream->attr.fragsize);
|
||||
towrite = SPA_ROUND_DOWN(towrite, stream->frame_size);
|
||||
|
||||
msg = message_alloc(impl, stream->channel, towrite);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue