diff options
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/pipewire.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp index 5753d6ff..e448ee6f 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -568,7 +568,12 @@ DeviceNode *DeviceNode::Find(uint32_t id) void DeviceNode::Remove(uint32_t id) { auto match_id = [id](DeviceNode &n) noexcept -> bool - { return n.mId == id; }; + { + if(n.mId != id) + return false; + TRACE("Removing device \"%s\"\n", n.mDevName.c_str()); + return true; + }; auto end = std::remove_if(sList.begin(), sList.end(), match_id); sList.erase(end, sList.end()); |