SDL: Fixed crash if PIPEWIRE_PREFERRED_Init() fails and then pipewire is used anyway

From 1d59be67fc74a83902eda2031ea4621ace5c4559 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 6 Sep 2024 17:26:45 -0700
Subject: [PATCH] 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.
---
 src/audio/pipewire/SDL_pipewire.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c
index 0f9b92b496cd4..e619ce6037c95 100644
--- a/src/audio/pipewire/SDL_pipewire.c
+++ b/src/audio/pipewire/SDL_pipewire.c
@@ -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;
         }