Sfoglia il codice sorgente

audio: pipewire: Avoid redundant locking

The pw_thread_loop already locks and unlocks the thread mutex at the start and end of each loop iteration, so these locks are unnecessary.
Frank Praznik 4 anni fa
parent
commit
8deb406300
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      src/audio/pipewire/SDL_pipewire.c

+ 0 - 4
src/audio/pipewire/SDL_pipewire.c

@@ -418,16 +418,12 @@ static void
 core_events_hotplug_init_callback(void *object, uint32_t id, int seq)
 {
     if (id == PW_ID_CORE && seq == hotplug_init_seq_val) {
-        PIPEWIRE_pw_thread_loop_lock(hotplug_loop);
-
         /* This core listener is no longer needed. */
         spa_hook_remove(&hotplug_core_listener);
 
         /* Signal that the initial I/O list is populated */
         SDL_AtomicSet(&hotplug_init_complete, 1);
         PIPEWIRE_pw_thread_loop_signal(hotplug_loop, false);
-
-        PIPEWIRE_pw_thread_loop_unlock(hotplug_loop);
     }
 }