]> git.xonotic.org Git - xonotic/darkplaces.git/commit
fix a crash in debug builds where the compiler did not optimize
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2011 09:41:52 +0000 (09:41 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 23 May 2011 11:34:38 +0000 (13:34 +0200)
commita3ea93578d5055b8b3b37507695e598a61404db3
treed7139e9dedfe944c42f4cb9b93f6ef09f6f77246
parent0ff89222e677b14483ba7daee257abbdabf40aa8
fix a crash in debug builds where the compiler did not optimize
ch->sfx-> to use a local variable holding the unchanging value of sfx
(the crash occurs when the mixer thread clears ch->sfx while the main
thread is deciding whether to merge a sound onto an existing channel -
if the channel dies during this code, the sfx pointer must be preserved)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11161 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b812f1cdbdd266c770423017f47a129e64811cf0
snd_main.c
snd_main.h
snd_mix.c