Commit 226541cb5b0d891e8475a52a6380bd1b2f327ce6

Ryan C. Gordon 2017-04-26T01:43:40

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index 45d137d..ae076b2 100644
--- a/src/audio/SDL_audio.c
+++ b/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);