From 226541cb5b0d891e8475a52a6380bd1b2f327ce6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 26 Apr 2017 01:43:40 -0400 Subject: [PATCH] audio: another wrong struct that causes NULL pointer crash (thanks, Simon!). Fixes Bugzilla #3632. --- src/audio/SDL_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 45d137d29..ae076b247 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);