[pulseaudio-commits] r1218 - /trunk/src/pulsecore/core-subscribe.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Aug 12 08:08:55 PDT 2006
Author: lennart
Date: Sat Aug 12 17:08:53 2006
New Revision: 1218
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1218&root=pulseaudio&view=rev
Log:
there's no need to queue subscription events if noone is listening, hence don't do it!
Modified:
trunk/src/pulsecore/core-subscribe.c
Modified: trunk/src/pulsecore/core-subscribe.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core-subscribe.c?rev=1218&root=pulseaudio&r1=1217&r2=1218&view=diff
==============================================================================
--- trunk/src/pulsecore/core-subscribe.c (original)
+++ trunk/src/pulsecore/core-subscribe.c Sat Aug 12 17:08:53 2006
@@ -209,6 +209,10 @@
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;
More information about the pulseaudio-commits
mailing list