Browse Source

audio: another wrong struct that causes NULL pointer crash (thanks, Simon!).

Fixes Bugzilla #3632.
Ryan C. Gordon 8 years ago
parent
commit
226541cb5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/audio/SDL_audio.c

+ 1 - 1
src/audio/SDL_audio.c

@@ -733,7 +733,7 @@ SDL_CaptureAudio(void *devicep)
     const int data_len = device->spec.size;
     Uint8 *data;
     void *udata = device->spec.userdata;
-    SDL_AudioCallback callback = device->spec.callback;
+    SDL_AudioCallback callback = device->callbackspec.callback;
 
     SDL_assert(device->iscapture);