From 0eb270576647ed774320bbdd2c3d855db1ebf4d0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 5 Sep 2019 09:17:14 +0200 Subject: [PATCH] alsa: fix read of second part of ringbuffer --- spa/plugins/alsa/alsa-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-utils.c b/spa/plugins/alsa/alsa-utils.c index 80c995ee0..07898dee5 100644 --- a/spa/plugins/alsa/alsa-utils.c +++ b/spa/plugins/alsa/alsa-utils.c @@ -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); }