diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-12 15:08:53 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-08-12 15:08:53 +0000 |
commit | 0547b0fd4a9a8df1f7c6836a6e1e04697769d4b8 (patch) | |
tree | 456a663843ff735b0d7575f1a1f64820032e835b /src/pulsecore/core-subscribe.c | |
parent | c86890d5e794aa5b4b3e39796c705b5922877dfe (diff) |
there's no need to queue subscription events if noone is listening, hence don't do it!
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1218 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/core-subscribe.c')
-rw-r--r-- | src/pulsecore/core-subscribe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/core-subscribe.c b/src/pulsecore/core-subscribe.c index 2c6256329..37673da57 100644 --- a/src/pulsecore/core-subscribe.c +++ b/src/pulsecore/core-subscribe.c @@ -209,6 +209,10 @@ void pa_subscription_post(pa_core *c, pa_subscription_event_type_t t, uint32_t i pa_subscription_event *e; assert(c); + /* No need for queuing subscriptions of noone is listening */ + if (!c->subscriptions) + return; + if ((t & PA_SUBSCRIPTION_EVENT_TYPE_MASK) != PA_SUBSCRIPTION_EVENT_NEW) { pa_subscription_event *i, *n; |