mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
Fixed crash if pipewire doesn't detect any devices and doesn't end up being used.
Fixes https://github.com/libsdl-org/SDL/issues/10511
This commit is contained in:
@@ -1269,6 +1269,7 @@ static SDL_bool PIPEWIRE_PREFERRED_Init(SDL_AudioDriverImpl *impl)
|
|||||||
PIPEWIRE_pw_thread_loop_unlock(hotplug_loop);
|
PIPEWIRE_pw_thread_loop_unlock(hotplug_loop);
|
||||||
|
|
||||||
if (no_devices || !pipewire_core_version_at_least(1, 0, 0)) {
|
if (no_devices || !pipewire_core_version_at_least(1, 0, 0)) {
|
||||||
|
hotplug_loop_destroy();
|
||||||
PIPEWIRE_Deinitialize();
|
PIPEWIRE_Deinitialize();
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user