Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12075) SDL_mixer freezes when quitting
Home

[Freeciv-Dev] (PR#12075) SDL_mixer freezes when quitting

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx, lo_oris@xxxxxxxxxxxxx, rzilibow@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#12075) SDL_mixer freezes when quitting
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Feb 2005 07:29:30 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12075 >

> [chrisk - Wed Feb 02 09:57:02 2005]:
> 
> 
> This happens quite often now.

This seems to be the now-documented SDL_mixer-hangs-while-quitting
problem.  Can you see if the attached patch fixes it?

-jason

Index: client/audio_sdl.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/audio_sdl.c,v
retrieving revision 1.7
diff -u -r1.7 audio_sdl.c
--- client/audio_sdl.c  25 Jun 2004 23:35:55 -0000      1.7
+++ client/audio_sdl.c  2 Feb 2005 15:29:00 -0000
@@ -172,6 +172,7 @@
       Mix_FreeChunk(samples[i].wave);
     }
   }
+  Mix_HaltMusic();
   Mix_FreeMusic(mus);
 
   Mix_CloseAudio();

[Prev in Thread] Current Thread [Next in Thread]