844d52f0a5
IAudioEndpointVolumeCallback::Release was called in callback functions of IMMNotificationClient (through the call to SystemvolumePlugin::sendSinkList), however https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nn-mmdeviceapi-immnotificationclient points out that: *To avoid dead locks, the client should never call IMMDeviceEnumerator::RegisterEndpointNotificationCallback or IMMDeviceEnumerator::UnregisterEndpointNotificationCallback in its implementation of IMMNotificationClient methods. *The client should never release the final reference on an MMDevice API object during an event callback. So I moved that part of code to another thread so it will successfully run after callback functions work out and call only if endpoint needs to be released (device was removed), so it won't spawn new thread for every generated event |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
kdeconnect_systemvolume.json | ||
README | ||
systemvolumeplugin-macos.cpp | ||
systemvolumeplugin-macos.h | ||
systemvolumeplugin-pulse.cpp | ||
systemvolumeplugin-pulse.h | ||
systemvolumeplugin-win.cpp | ||
systemvolumeplugin-win.h |
This plugin allows to control the system volume.