From: Timo Wischer Date: Wed, 21 Mar 2018 11:42:32 +0000 (+0100) Subject: jack: Use correct parameter order for snd_pcm_areas_silence() X-Git-Tag: v1.1.6~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5a0a10547cc6d21432b54330b7e38811ae6342ed;p=alsa-plugins.git jack: Use correct parameter order for snd_pcm_areas_silence() Without this fix it will sometimes fail with a segmentation fault. Signed-off-by: Timo Wischer Signed-off-by: Jaroslav Kysela --- diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c index a655668..e3df4d2 100644 --- a/jack/pcm_jack.c +++ b/jack/pcm_jack.c @@ -200,7 +200,7 @@ snd_pcm_jack_process_cb(jack_nframes_t nframes, snd_pcm_ioplug_t *io) if (io->stream == SND_PCM_STREAM_PLAYBACK) { const snd_pcm_uframes_t frames = nframes - xfer; - snd_pcm_areas_silence(jack->areas, io->channels, xfer, + snd_pcm_areas_silence(jack->areas, xfer, io->channels, frames, io->format); }