summaryrefslogtreecommitdiffstats
path: root/src/modules/module-combine.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-15 14:21:05 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-15 14:21:05 +0000
commit8389264d6560d32b3912c60474497742807efbde (patch)
tree5a9218108ee461f894c1829369e30a7c19788b00 /src/modules/module-combine.c
parent5ae4eed52e911fb3e9712e1cd7d6095427515cd1 (diff)
count corked streams per sink/source and make pa_sink_used_by() return only the number of streams that are not corked. Introduce pa_sink_linked_by() returning the number of streams connected at all. This will allow suspending of sinks/sources when all streams connected to a sink are corked.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1824 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-combine.c')
-rw-r--r--src/modules/module-combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-combine.c b/src/modules/module-combine.c
index 91561ee7..86ae0b1e 100644
--- a/src/modules/module-combine.c
+++ b/src/modules/module-combine.c
@@ -385,7 +385,7 @@ static void sink_input_detach_cb(pa_sink_input *i) {
o->rtpoll_item = NULL;
if (o->userdata->master == o)
- pa_sink_detach_from_thread(o->userdata->sink);
+ pa_sink_detach_within_thread(o->userdata->sink);
}
/* Called from main context */