diff options
author | Chris Robinson <[email protected]> | 2022-02-15 17:24:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-15 17:24:20 -0800 |
commit | 0493085ea2fabbf7431911143dcfbb7482a27c43 (patch) | |
tree | 311e8d4e67b08a3902eca9ff0f7f10cba9faa632 /alc/backends/pipewire.cpp | |
parent | 30c5c43e56047d5965ae2ddcfab32b2f0b3e64fb (diff) |
Log when a pipewire device is removed
Diffstat (limited to 'alc/backends/pipewire.cpp')
-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()); |