SDL: audio: pipewire: Reset hotplug atomic variables on deinit.

From 70c23b25f0a463d46e689a0136750ca05c5b9908 Mon Sep 17 00:00:00 2001
From: Oschowa <[EMAIL REDACTED]>
Date: Wed, 18 Aug 2021 13:18:11 +0200
Subject: [PATCH] audio: pipewire: Reset hotplug atomic variables on deinit.

---
 src/audio/pipewire/SDL_pipewire.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c
index c7b10c6651..3c3b6ca8a8 100644
--- a/src/audio/pipewire/SDL_pipewire.c
+++ b/src/audio/pipewire/SDL_pipewire.c
@@ -738,6 +738,9 @@ hotplug_loop_destroy()
     pending_list_clear();
     io_list_clear();
 
+    SDL_AtomicSet(&hotplug_init_complete, 0);
+    SDL_AtomicSet(&hotplug_events_enabled, 0);
+
     if (hotplug_registry) {
         PIPEWIRE_pw_proxy_destroy((struct pw_proxy *)hotplug_registry);
     }