Browse Source

audio: pipewire: Reset hotplug atomic variables on deinit.

Oschowa 3 years ago
parent
commit
70c23b25f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/audio/pipewire/SDL_pipewire.c

+ 3 - 0
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);
     }