projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca5874d
)
Fix off-by-one in mixing code
author
Lennart Poettering
<lennart@poettering.net>
Fri, 13 Jul 2007 12:11:19 +0000
(12:11 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 13 Jul 2007 12:11:19 +0000
(12:11 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1513
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
ced23a5
..
5a79a41
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-320,7
+320,8
@@
static void inputs_drop(pa_sink *s, pa_mix_info *info, unsigned n, size_t length
break;
}
- if (++p > n)
+ p++;
+ if (p >= n)
p = 0;
}