]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
jack: Use correct parameter order for snd_pcm_areas_silence()
authorTimo Wischer <twischer@de.adit-jv.com>
Wed, 21 Mar 2018 11:42:32 +0000 (12:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 Mar 2018 12:10:01 +0000 (13:10 +0100)
Without this fix it will sometimes fail with a segmentation fault.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
jack/pcm_jack.c

index a6556682a0f139ef65b608517eb844b629fb3c43..e3df4d28fc86ca8839826dcbdbf34b2e2ac39e04 100644 (file)
@@ -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);
                }