[pulseaudio-commits] r1193 - /trunk/src/modules/alsa-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 11 08:06:04 PDT 2006


Author: lennart
Date: Fri Aug 11 17:06:03 2006
New Revision: 1193

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1193&root=pulseaudio&view=rev
Log:
change order of the ALSA event dispatch code to make sure that the code survives if the event dispatcher frees the ALSA client

Modified:
    trunk/src/modules/alsa-util.c

Modified: trunk/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/alsa-util.c?rev=1193&root=pulseaudio&r1=1192&r2=1193&view=diff
==============================================================================
--- trunk/src/modules/alsa-util.c (original)
+++ trunk/src/modules/alsa-util.c Fri Aug 11 17:06:03 2006
@@ -93,14 +93,14 @@
         return;
     }
 
+    a->defer_enable(fdl->defer, 1);
+
     if (revents) {
         if (fdl->pcm)
             fdl->cb(fdl->userdata);
         else
             snd_mixer_handle_events(fdl->mixer);
     }
-
-    a->defer_enable(fdl->defer, 1);
 }
 
 static void defer_cb(pa_mainloop_api*a, PA_GCC_UNUSED pa_defer_event* e, void *userdata) {




More information about the pulseaudio-commits mailing list