summaryrefslogtreecommitdiff
path: root/src/modules/module-pipe-sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-12 17:06:05 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-12 17:06:05 +0000
commitdbe6bdd2bcd035b0b07d70811593be719c5cc7c0 (patch)
tree8325f87d981052e559c66d587489c8d148d8d25a /src/modules/module-pipe-sink.c
parentb5207fc9cac954d49132ff4e6760a60e4e6f2b51 (diff)
make use of pa_sink_used_by()/pa_source_used_by() wherever applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1227 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-pipe-sink.c')
-rw-r--r--src/modules/module-pipe-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-pipe-sink.c b/src/modules/module-pipe-sink.c
index cc5276d4..c90039fd 100644
--- a/src/modules/module-pipe-sink.c
+++ b/src/modules/module-pipe-sink.c
@@ -91,7 +91,7 @@ static void do_write(struct userdata *u) {
if (!pa_iochannel_is_writable(u->io))
return;
- pa_module_set_used(u->module, pa_idxset_size(u->sink->inputs) + pa_idxset_size(u->sink->monitor_source->outputs));
+ pa_module_set_used(u->module, pa_sink_used_by(u->sink));
if (!u->memchunk.length)
if (pa_sink_render(u->sink, PIPE_BUF, &u->memchunk) < 0)