Skip to contentSkip to conversation

jack: Use correct parameter order for snd_pcm_areas_silence()

PATCH Applied [email protected] 3 participants 4 messages Mar 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jack: Use correct parameter order for snd_pcm_areas_silence()

From: Timo Wischer <[email protected]>

Without this fix it will sometimes fail with a segmentation fault.

jack/pcm_jack.c +1 -1
index a655668..e3df4d2 100644
@@ -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);
 		}
 
Signature · 1 line
2.7.4
#1 lore raw

Dne 21.3.2018 v 12:42 [email protected] napsal(a):

Quoted 3 lines

From: Timo Wischer <[email protected]>

Without this fix it will sometimes fail with a segmentation fault.

Applied. Thanks.

Jaroslav

Quoted 15 lines
jack/pcm_jack.c +1 -1
index a655668..e3df4d2 100644
@@ -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);
 		}
Signature · 2 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.