Commit 06dcdc7d485763bcd42df0592b63b4735e454305

Ryan C. Gordon 2016-08-28T11:56:11

Patched to compile.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c
index 2011934..12de104 100644
--- a/src/audio/alsa/SDL_alsa_audio.c
+++ b/src/audio/alsa/SDL_alsa_audio.c
@@ -804,7 +804,7 @@ ALSA_HotplugThread(void *arg)
 
         /* Block awhile before checking again, unless we're told to stop. */
         ticks = SDL_GetTicks() + 5000;
-        while (!SDL_AtomicGet(&ALSA_hotplug_shutdown) && !SDL_TICKS_PASSED(SDL_GetTicks(), ticks))
+        while (!SDL_AtomicGet(&ALSA_hotplug_shutdown) && !SDL_TICKS_PASSED(SDL_GetTicks(), ticks)) {
             SDL_Delay(100);
         }
     }