summaryrefslogtreecommitdiffstats
path: root/src/modules/module-solaris.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-solaris.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-solaris.c')
-rw-r--r--src/modules/module-solaris.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c
index 21a72b38..53c73af7 100644
--- a/src/modules/module-solaris.c
+++ b/src/modules/module-solaris.c
@@ -110,9 +110,8 @@ static const char* const valid_modargs[] = {
static void update_usage(struct userdata *u) {
pa_module_set_used(u->module,
- (u->sink ? pa_idxset_size(u->sink->inputs) : 0) +
- (u->sink ? pa_idxset_size(u->sink->monitor_source->outputs) : 0) +
- (u->source ? pa_idxset_size(u->source->outputs) : 0));
+ (u->sink ? pa_sink_used_by(u->sink) : 0) +
+ (u->source ? pa_source_used_by(u->source) : 0));
}
static void do_write(struct userdata *u) {