Commit d8ee7665bfc7846c7fc6bfb96434eca68e5bec1a
1 parent
89a740e1
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>
Showing
1 changed file
with
1 additions
and
1 deletions
sdl.c
@@ -753,7 +753,7 @@ static void sdl_cleanup(void) | @@ -753,7 +753,7 @@ static void sdl_cleanup(void) | ||
753 | { | 753 | { |
754 | if (guest_sprite) | 754 | if (guest_sprite) |
755 | SDL_FreeCursor(guest_sprite); | 755 | SDL_FreeCursor(guest_sprite); |
756 | - SDL_Quit(); | 756 | + SDL_QuitSubSystem(SDL_INIT_VIDEO); |
757 | } | 757 | } |
758 | 758 | ||
759 | void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) | 759 | void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) |