Просмотр исходного кода

audio: pipewire: Reset hotplug atomic variables on deinit.

Oschowa 4 лет назад
Родитель
Сommit
70c23b25f0
1 измененных файлов с 3 добавлено и 0 удалено
  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);
     }