[pulseaudio-commits] r1617 - /branches/lennart/src/pulse/mainloop.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 10 08:09:29 PDT 2007


Author: lennart
Date: Fri Aug 10 17:09:28 2007
New Revision: 1617

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1617&root=3Dpulseaudio&vi=
ew=3Drev
Log:
minor cleanliness fixes

Modified:
    branches/lennart/src/pulse/mainloop.c

Modified: branches/lennart/src/pulse/mainloop.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulse/main=
loop.c?rev=3D1617&root=3Dpulseaudio&r1=3D1616&r2=3D1617&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulse/mainloop.c (original)
+++ branches/lennart/src/pulse/mainloop.c Fri Aug 10 17:09:28 2007
@@ -305,6 +305,7 @@
     if (e->enabled) {
         assert(e->mainloop->n_enabled_defer_events > 0);
         e->mainloop->n_enabled_defer_events--;
+        e->enabled =3D 0;
     }
 }
 =

@@ -395,6 +396,7 @@
     if (e->enabled) {
         assert(e->mainloop->n_enabled_time_events > 0);
         e->mainloop->n_enabled_time_events--;
+        e->enabled =3D 0;
     }
 =

     if (e->mainloop->cached_next_time_event =3D=3D e)
@@ -541,6 +543,7 @@
             if (!e->dead && e->enabled) {
                 assert(m->n_enabled_time_events > 0);
                 m->n_enabled_time_events--;
+                e->enabled =3D 0;
             }
 =

             if (e->destroy_callback)
@@ -574,9 +577,9 @@
             }
 =

             if (!e->dead && e->enabled) {
-                e->enabled =3D 0;
                 assert(m->n_enabled_defer_events > 0);
                 m->n_enabled_defer_events--;
+                e->enabled =3D 0;
             }
 =

             if (e->destroy_callback)




More information about the pulseaudio-commits mailing list