From 8389264d6560d32b3912c60474497742807efbde Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 15 Sep 2007 14:21:05 +0000 Subject: 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 --- src/modules/module-combine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/module-combine.c') 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 */ -- cgit