Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipewire: If hotplug initialization fails, clean up any partial success
hotplug_loop_init() calls pw_context_new(), which creates a thread internally (for the "data loop"). It also creates a thread of its own, the `hotplug_loop`. Both of these threads are running code from libpipewire, so before we can allow the Pipewire library to be unloaded, we need to destroy the context with pw_context_destroy() and destroy the `hotplug_loop` with pw_thread_loop_destroy(). Resolves: libsdl-org#10787 Signed-off-by: Simon McVittie <[email protected]>
- Loading branch information