Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipewire: Always destroy hotplug loop during deinitialization
We always need to destroy the hotplug loop and its associated resources (if created) before we can deinitialize and unload the Pipewire library. In the happy path where everything worked correctly, this means we will call hotplug_loop_destroy() twice (once from PIPEWIRE_DeinitializeStart() and a second time from PIPEWIRE_Deinitialize()), but that's OK, because it's idempotent and so will do nothing the second time. In error-handling code paths, this avoids needing to remember to call hotplug_loop_destroy() explicitly, which should make it easier to avoid bugs like libsdl-org#10787. Signed-off-by: Simon McVittie <[email protected]>
- Loading branch information