mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
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
This commit is contained in:
parent
c86890d5e7
commit
0547b0fd4a
1 changed files with 4 additions and 0 deletions
|
|
@ -209,6 +209,10 @@ void pa_subscription_post(pa_core *c, pa_subscription_event_type_t t, uint32_t i
|
||||||
pa_subscription_event *e;
|
pa_subscription_event *e;
|
||||||
assert(c);
|
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) {
|
if ((t & PA_SUBSCRIPTION_EVENT_TYPE_MASK) != PA_SUBSCRIPTION_EVENT_NEW) {
|
||||||
pa_subscription_event *i, *n;
|
pa_subscription_event *i, *n;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue