change order of the ALSA event dispatch code to make sure that the code survives...
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Aug 2006 15:06:03 +0000 (15:06 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 11 Aug 2006 15:06:03 +0000 (15:06 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/alsa-util.c

index 04a2d84..969a3da 100644 (file)
@@ -93,14 +93,14 @@ static void io_cb(pa_mainloop_api*a, pa_io_event* e, PA_GCC_UNUSED int fd, pa_io
         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) {