src/audio/SDL_audio.c
changeset 2979 d578ae900755
parent 2947 fec0db6c44b7
child 2984 0b160c970b7e
     1.1 --- a/src/audio/SDL_audio.c	Sat Jan 03 07:23:11 2009 +0000
     1.2 +++ b/src/audio/SDL_audio.c	Sat Jan 03 07:33:42 2009 +0000
     1.3 @@ -28,7 +28,7 @@
     1.4  #include "SDL_audiomem.h"
     1.5  #include "SDL_sysaudio.h"
     1.6  
     1.7 -#define _THIS	SDL_AudioDevice *this
     1.8 +#define _THIS    SDL_AudioDevice *this
     1.9  
    1.10  static SDL_AudioDriver current_audio;
    1.11  static SDL_AudioDevice *open_devices[16];
    1.12 @@ -625,7 +625,9 @@
    1.13              initialized = 1;
    1.14              best_choice = i;
    1.15          } else if (rc == 1) {   /* init'd, but can't see any devices. */
    1.16 -            current_audio.impl.Deinitialize();
    1.17 +            if (current_audio.impl.Deinitialize) {
    1.18 +                current_audio.impl.Deinitialize();
    1.19 +            }
    1.20              if (best_choice == -1) {
    1.21                  best_choice = i;
    1.22              }