From 1753ae794f73c041f38fa49fd328024f6a617079 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 13 Mar 2007 00:40:22 +0100 Subject: [PATCH] Fix start/stop of multi plugin The start/stop of sync'ed stream of multi plugin. This should make some JACK users with multiple devices happier. --- src/pcm/pcm_multi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c index 85403c6d..68fcb3b5 100644 --- a/src/pcm/pcm_multi.c +++ b/src/pcm/pcm_multi.c @@ -621,7 +621,8 @@ static int snd_pcm_multi_link_fd(snd_pcm_t *pcm, int *fds, int count, int (**fai if (multi->slaves[i].linked) snd_pcm_unlink(multi->slaves[i].pcm); fds[i] = _snd_pcm_link_descriptor(multi->slaves[i].pcm); - multi->slaves[i].linked = 1; + if (i > 0) + multi->slaves[i].linked = 1; } *failed = snd_pcm_multi_link_fd_failed; return multi->slaves_count; -- 2.47.1