mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: fix read of second part of ringbuffer
This commit is contained in:
parent
bd2d0ebc75
commit
0eb2705766
1 changed files with 1 additions and 1 deletions
|
|
@ -861,7 +861,7 @@ push_frames(struct state *state,
|
|||
src = SPA_MEMBER(my_areas[0].addr, offset * state->frame_size, uint8_t);
|
||||
spa_memcpy(d[0].data, src, l0);
|
||||
if (l1 > 0)
|
||||
spa_memcpy(d[0].data, my_areas[0].addr, l1);
|
||||
spa_memcpy(SPA_MEMBER(d[0].data, l0, void), my_areas[0].addr, l1);
|
||||
} else {
|
||||
memset(d[0].data, 0, n_bytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue