[pulseaudio-commits] r2510 - /trunk/src/pulsecore/core.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Jun 11 09:55:44 PDT 2008


Author: lennart
Date: Wed Jun 11 18:55:43 2008
New Revision: 2510

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2510&root=pulseaudio&view=rev
Log:
reformat things

Modified:
    trunk/src/pulsecore/core.c

Modified: trunk/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.c?rev=2510&root=pulseaudio&r1=2509&r2=2510&view=diff
==============================================================================
--- trunk/src/pulsecore/core.c (original)
+++ trunk/src/pulsecore/core.c Wed Jun 11 18:55:43 2008
@@ -209,11 +209,16 @@
 void pa_core_check_quit(pa_core *c) {
     pa_assert(c);
 
-    if (!c->quit_event && c->exit_idle_time >= 0 && pa_idxset_size(c->clients) == 0) {
+    if (!c->quit_event &&
+        c->exit_idle_time >= 0 &&
+        pa_idxset_size(c->clients) == 0) {
+
         struct timeval tv;
         pa_gettimeofday(&tv);
         tv.tv_sec+= c->exit_idle_time;
+
         c->quit_event = c->mainloop->time_new(c->mainloop, &tv, quit_callback, c);
+
     } else if (c->quit_event && pa_idxset_size(c->clients) > 0) {
         c->mainloop->time_free(c->quit_event);
         c->quit_event = NULL;




More information about the pulseaudio-commits mailing list