aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_codec.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-18 01:06:46 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-11-18 01:06:46 +0000
commit0d2333019b693d730706d7a7708024f5db74f040 (patch)
tree702c9e12fd9b759d2837b959d6e3360fff7f00c8 /code/client/snd_codec.c
parent1f3440d28940f3edeef7e02b21081fede99e8ed0 (diff)
downloadioquake3-aero-0d2333019b693d730706d7a7708024f5db74f040.tar.gz
ioquake3-aero-0d2333019b693d730706d7a7708024f5db74f040.zip
* Fix bug where an extraneous render command can cause a crash when
recording video * Make S_CodecUtilClose NULL the snd_stream_t pointer * Fix indentation in runtime SDL check code git-svn-id: svn://svn.icculus.org/quake3/trunk@1214 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_codec.c')
-rw-r--r--code/client/snd_codec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/code/client/snd_codec.c b/code/client/snd_codec.c
index 52435c1..41456ce 100644
--- a/code/client/snd_codec.c
+++ b/code/client/snd_codec.c
@@ -226,8 +226,9 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec)
S_CodecUtilClose
=================
*/
-void S_CodecUtilClose(snd_stream_t *stream)
+void S_CodecUtilClose(snd_stream_t **stream)
{
- FS_FCloseFile(stream->file);
- Z_Free(stream);
+ FS_FCloseFile((*stream)->file);
+ Z_Free(*stream);
+ *stream = NULL;
}