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>
1 file changed
tree: f848cf93e1bd508194db2267c0d4ce6b5e082edd
  1. audio/
  2. block/
  3. bsd-user/
  4. darwin-user/
  5. fpu/
  6. gdb-xml/
  7. hw/
  8. keymaps/
  9. linux-user/
  10. pc-bios/
  11. slirp/
  12. target-alpha/
  13. target-arm/
  14. target-cris/
  15. target-i386/
  16. target-m68k/
  17. target-mips/
  18. target-ppc/
  19. target-sh4/
  20. target-sparc/
  21. tcg/
  22. tests/
  23. .gitignore
  24. a.out.h
  25. acl.c
  26. acl.h
  27. aes.c
  28. aes.h
  29. aio.c
  30. alpha-dis.c
  31. alpha.ld
  32. arm-dis.c
  33. arm-semi.c
  34. arm.ld
  35. balloon.h
  36. block.c
  37. block.h
  38. block_int.h
  39. bswap.h
  40. bt-host.c
  41. bt-host.h
  42. bt-vhci.c
  43. buffered_file.c
  44. buffered_file.h
  45. cache-utils.c
  46. cache-utils.h
  47. Changelog
  48. cmd.c
  49. cmd.h
  50. cocoa.m
  51. CODING_STYLE
  52. configure
  53. console.c
  54. console.h
  55. COPYING
  56. COPYING.LIB
  57. cpu-all.h
  58. cpu-defs.h
  59. cpu-exec.c
  60. cris-dis.c
  61. curses.c
  62. curses_keys.h
  63. cutils.c
  64. d3des.c
  65. d3des.h
  66. def-helper.h
  67. device_tree.c
  68. device_tree.h
  69. dis-asm.h
  70. disas.c
  71. disas.h
  72. dma-helpers.c
  73. dma.h
  74. dyngen-exec.h
  75. elf.h
  76. elf_ops.h
  77. exec-all.h
  78. exec.c
  79. feature_to_c.sh
  80. gdbstub.c
  81. gdbstub.h
  82. gen-icount.h
  83. host-utils.c
  84. host-utils.h
  85. hostregs_helper.h
  86. hpet.h
  87. hppa-dis.c
  88. hppa.ld
  89. hxtool
  90. i386-dis.c
  91. i386.ld
  92. ia64.ld
  93. keymaps.c
  94. keymaps.h
  95. kqemu.c
  96. kqemu.h
  97. kvm-all.c
  98. kvm.h
  99. libfdt_env.h
  100. LICENSE
  101. loader.c
  102. m68k-dis.c
  103. m68k-semi.c
  104. m68k.ld
  105. MAINTAINERS
  106. Makefile
  107. Makefile.target
  108. migration-exec.c
  109. migration-tcp.c
  110. migration.c
  111. migration.h
  112. mips-dis.c
  113. mips.ld
  114. mipsel.ld
  115. module.c
  116. module.h
  117. monitor.c
  118. monitor.h
  119. nbd.c
  120. nbd.h
  121. net-checksum.c
  122. net.c
  123. net.h
  124. osdep.c
  125. osdep.h
  126. pci-ids.txt
  127. posix-aio-compat.c
  128. posix-aio-compat.h
  129. ppc-dis.c
  130. ppc.ld
  131. ppc64.ld
  132. qemu-aio.h
  133. qemu-binfmt-conf.sh
  134. qemu-char.c
  135. qemu-char.h
  136. qemu-common.h
  137. qemu-doc.texi
  138. qemu-img.c
  139. qemu-img.texi
  140. qemu-io.c
  141. qemu-lock.h
  142. qemu-log.h
  143. qemu-malloc.c
  144. qemu-nbd.c
  145. qemu-nbd.texi
  146. qemu-options.hx
  147. qemu-sockets.c
  148. qemu-tech.texi
  149. qemu-thread.c
  150. qemu-thread.h
  151. qemu-timer.h
  152. qemu-tool.c
  153. qemu.sasl
  154. qemu_socket.h
  155. readline.c
  156. readline.h
  157. README
  158. rules.mak
  159. s390-dis.c
  160. s390.ld
  161. savevm.c
  162. sdl.c
  163. sdl_keysym.h
  164. sh4-dis.c
  165. softmmu-semi.h
  166. softmmu_defs.h
  167. softmmu_exec.h
  168. softmmu_header.h
  169. softmmu_template.h
  170. sparc-dis.c
  171. sparc.ld
  172. sparc64.ld
  173. sys-queue.h
  174. sysemu.h
  175. tap-win32.c
  176. texi2pod.pl
  177. thunk.c
  178. thunk.h
  179. TODO
  180. tool-osdep.c
  181. translate-all.c
  182. uboot_image.h
  183. usb-bsd.c
  184. usb-linux.c
  185. usb-stub.c
  186. VERSION
  187. vgafont.h
  188. vl.c
  189. vnc-auth-sasl.c
  190. vnc-auth-sasl.h
  191. vnc-auth-vencrypt.c
  192. vnc-auth-vencrypt.h
  193. vnc-tls.c
  194. vnc-tls.h
  195. vnc.c
  196. vnc.h
  197. vnc_keysym.h
  198. vnchextile.h
  199. x86_64.ld
  200. x_keymap.c
  201. x_keymap.h