mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Fix off-by-one in mixing code
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1513 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
ca5874da9b
commit
481b425a28
1 changed files with 2 additions and 1 deletions
|
|
@ -320,7 +320,8 @@ static void inputs_drop(pa_sink *s, pa_mix_info *info, unsigned n, size_t length
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (++p > n)
|
p++;
|
||||||
|
if (p >= n)
|
||||||
p = 0;
|
p = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue