mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
audio: Make sure device->hidden
is NULL after CloseDevice
This commit is contained in:
@@ -1091,6 +1091,7 @@ static void ClosePhysicalAudioDevice(SDL_AudioDevice *device)
|
|||||||
if (device->is_opened) {
|
if (device->is_opened) {
|
||||||
current_audio.impl.CloseDevice(device); // if ProvidesOwnCallbackThread, this must join on any existing device thread before returning!
|
current_audio.impl.CloseDevice(device); // if ProvidesOwnCallbackThread, this must join on any existing device thread before returning!
|
||||||
device->is_opened = SDL_FALSE;
|
device->is_opened = SDL_FALSE;
|
||||||
|
device->hidden = NULL; // just in case.
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device->work_buffer) {
|
if (device->work_buffer) {
|
||||||
|
Reference in New Issue
Block a user