Fix crash in SDL audio thread, by Juha Kuikka
Wrong audio spec structure was populated with the internal callback, causing the audio thread to call a NULL pointer.
This commit is contained in:
parent
d8af5b0d60
commit
d2991813c9
1 changed files with 2 additions and 2 deletions
|
@ -1344,8 +1344,8 @@ open_audio_device(const char *devname, int iscapture,
|
|||
SDL_SetError("Couldn't create audio buffer queue");
|
||||
return 0;
|
||||
}
|
||||
device->spec.callback = iscapture ? SDL_BufferQueueFillCallback : SDL_BufferQueueDrainCallback;
|
||||
device->spec.userdata = device;
|
||||
device->callbackspec.callback = iscapture ? SDL_BufferQueueFillCallback : SDL_BufferQueueDrainCallback;
|
||||
device->callbackspec.userdata = device;
|
||||
}
|
||||
|
||||
/* Allocate a scratch audio buffer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue