diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2013-04-09 14:52:54 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2013-04-09 14:52:54 +0300 |
commit | bfb281c7d53e00d433d0098f101ec8c354d03475 (patch) | |
tree | 9106d585b7ebe47dff58c1b4633a0c72e4fdd4e2 | |
parent | 06aed149c4595a1c08561b4d68004244ff949e54 (diff) |
mix: Mix the right number of streams
Passing channels instead of nstreams to pa_mix_ch2_s16ne() caused that
only the first two streams got mixed.
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=63093
-rw-r--r-- | src/pulsecore/mix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/mix.c b/src/pulsecore/mix.c index 786ed75a..6ff6831a 100644 --- a/src/pulsecore/mix.c +++ b/src/pulsecore/mix.c @@ -249,7 +249,7 @@ static void pa_mix_s16ne_c(pa_mix_info streams[], unsigned nstreams, unsigned ch else if (nstreams == 2) pa_mix2_s16ne(streams, channels, data, length); else if (channels == 2) - pa_mix_ch2_s16ne(streams, channels, data, length); + pa_mix_ch2_s16ne(streams, nstreams, data, length); else pa_mix_generic_s16ne(streams, nstreams, channels, data, length); } |