diff SDL_sound.c @ 432:ddce7101673e

Call SDL_InitSubSystem instead of SDL_Init, to prevent unwanted initialization of the SDL parachute.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 10 Dec 2002 02:15:32 +0000
parents 9d0b5ec9cc26
children 5b00e43ec23c
line wrap: on
line diff
--- a/SDL_sound.c	Tue Dec 10 02:14:47 2002 +0000
+++ b/SDL_sound.c	Tue Dec 10 02:15:32 2002 +0000
@@ -218,7 +218,7 @@
                             malloc((total) * sizeof (Sound_DecoderInfo *));
     BAIL_IF_MACRO(available_decoders == NULL, ERR_OUT_OF_MEMORY, 0);
 
-    SDL_Init(SDL_INIT_AUDIO);
+    SDL_InitSubSystem(SDL_INIT_AUDIO);
 
     errorlist_mutex = SDL_CreateMutex();