mirror of https://github.com/encounter/SDL.git
audio: another wrong struct that causes NULL pointer crash (thanks, Simon!).
Fixes Bugzilla #3632.
This commit is contained in:
parent
1286a7d23e
commit
226541cb5b
|
@ -733,7 +733,7 @@ SDL_CaptureAudio(void *devicep)
|
||||||
const int data_len = device->spec.size;
|
const int data_len = device->spec.size;
|
||||||
Uint8 *data;
|
Uint8 *data;
|
||||||
void *udata = device->spec.userdata;
|
void *udata = device->spec.userdata;
|
||||||
SDL_AudioCallback callback = device->spec.callback;
|
SDL_AudioCallback callback = device->callbackspec.callback;
|
||||||
|
|
||||||
SDL_assert(device->iscapture);
|
SDL_assert(device->iscapture);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue