mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-22 12:50:44 +00:00
Fixed crash if PIPEWIRE_PREFERRED_Init() fails and then pipewire is used anyway
The symbols were unloaded, but not reloaded because pipewire_initialized was still true.
This commit is contained in:
@@ -1242,12 +1242,12 @@ static bool PipewireInitialize(SDL_AudioDriverImpl *impl)
|
||||
pipewire_initialized = true;
|
||||
|
||||
if (SDL_sscanf(PIPEWIRE_pw_get_library_version(), "%d.%d.%d", &pipewire_client_version_major, &pipewire_client_version_minor, &pipewire_client_version_patch) < 3) {
|
||||
unload_pipewire_library();
|
||||
PIPEWIRE_Deinitialize();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!pipewire_client_version_at_least(1, 0, 0)) {
|
||||
unload_pipewire_library();
|
||||
PIPEWIRE_Deinitialize();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user