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

Fixes Bugzilla #3632.
This commit is contained in:
Ryan C. Gordon 2017-04-26 01:43:40 -04:00
parent 1286a7d23e
commit 226541cb5b
1 changed files with 1 additions and 1 deletions

View File

@ -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);