summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormalc2009-05-17 16:26:05 +0200
committermalc2009-05-17 16:26:52 +0200
commitd8ee7665bfc7846c7fc6bfb96434eca68e5bec1a (patch)
treef848cf93e1bd508194db2267c0d4ce6b5e082edd
parentConsistently use uint64_t for int properties (diff)
downloadqemu-d8ee7665bfc7846c7fc6bfb96434eca68e5bec1a.tar.gz
qemu-d8ee7665bfc7846c7fc6bfb96434eca68e5bec1a.tar.xz
qemu-d8ee7665bfc7846c7fc6bfb96434eca68e5bec1a.zip
Only shutdown video subsytem in sdl_cleanup
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>
-rw-r--r--sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index 03d3ab887a..178b5532b8 100644
--- 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)