mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: fix offset
This commit is contained in:
parent
cc8a5da9c7
commit
308acaf0ad
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ pull_frames (SpaALSAState *state,
|
|||
reuse = avail == n_bytes;
|
||||
} else {
|
||||
offs = SPA_MIN (d[0].chunk->offset + state->ready_offset, d[0].maxsize);
|
||||
size = SPA_MIN (d[0].chunk->size, d[0].maxsize - offs);
|
||||
size = SPA_MIN (d[0].chunk->size, d[0].maxsize) - offs;
|
||||
src = SPA_MEMBER (d[0].data, offs, uint8_t);
|
||||
|
||||
n_bytes = SPA_MIN (size, to_write * state->frame_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue