summaryrefslogtreecommitdiffstats
path: root/src/polyp/volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp/volume.c')
-rw-r--r--src/polyp/volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polyp/volume.c b/src/polyp/volume.c
index 0f153141..f10463c3 100644
--- a/src/polyp/volume.c
+++ b/src/polyp/volume.c
@@ -154,7 +154,7 @@ pa_cvolume *pa_sw_cvolume_multiply(pa_cvolume *dest, const pa_cvolume *a, const
assert(a);
assert(b);
- for (i = 0; i < a->channels || i < b->channels || i < PA_CHANNELS_MAX; i++) {
+ for (i = 0; i < a->channels && i < b->channels && i < PA_CHANNELS_MAX; i++) {
dest->values[i] = pa_sw_volume_multiply(
i < a->channels ? a->values[i] : PA_VOLUME_NORM,