]> git.proxmox.com Git - qemu.git/commitdiff
Only shutdown video subsytem in sdl_cleanup
authormalc <av1474@comtv.ru>
Sun, 17 May 2009 14:26:05 +0000 (18:26 +0400)
committermalc <av1474@comtv.ru>
Sun, 17 May 2009 14:26:52 +0000 (18:26 +0400)
Depending on the order in which atexit handlers are called SDL might
try to join on an audio thread without said thread ever being notified
that it must stop, hence QEMU will forever block in pthread_join call.

Signed-off-by: malc <av1474@comtv.ru>
sdl.c

diff --git a/sdl.c b/sdl.c
index 03d3ab887acb4a67ded16f83e53d32c2abcc1164..178b5532b8d9dd2194a8662fbfdcd49b4bc04222 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -753,7 +753,7 @@ static void sdl_cleanup(void)
 {
     if (guest_sprite)
         SDL_FreeCursor(guest_sprite);
-    SDL_Quit();
+    SDL_QuitSubSystem(SDL_INIT_VIDEO);
 }
 
 void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)