summaryrefslogtreecommitdiffstats
path: root/src/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sink.c')
-rw-r--r--src/sink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sink.c b/src/sink.c
index 89f5e088..cd12b463 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -81,9 +81,11 @@ static unsigned fill_mix_info(struct sink *s, struct mix_info *info, unsigned ma
for (i = idxset_first(s->inputs, &index); maxinfo > 0 && i; i = idxset_next(s->inputs, &index)) {
assert(i->peek);
- if (i->peek(i, &info->chunk, &info->volume) < 0)
+ if (i->peek(i, &info->chunk) < 0)
continue;
+ info->volume = i->volume;
+
assert(info->chunk.memblock && info->chunk.memblock->data && info->chunk.length);
info->userdata = i;