kdeconnect-kde/plugins/systemvolume
Art Pinch 844d52f0a5 Fixed kdeconnectd deadlock on Windows caused by systemvolumeplugin
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
2020-11-19 23:28:44 +03:00
..
CMakeLists.txt Use ecm_qt_declare_logging_category to declare the logging categories 2020-05-26 18:55:47 +02:00
kdeconnect_systemvolume.json SVN_SILENT made messages (.desktop file) - always resolve ours 2020-10-17 06:06:46 +02:00
README Add systemvolume plugin 2018-07-27 09:22:44 +02:00
systemvolumeplugin-macos.cpp Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
systemvolumeplugin-macos.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
systemvolumeplugin-pulse.cpp Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
systemvolumeplugin-pulse.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
systemvolumeplugin-win.cpp Fixed kdeconnectd deadlock on Windows caused by systemvolumeplugin 2020-11-19 23:28:44 +03:00
systemvolumeplugin-win.h Fixed kdeconnectd deadlock on Windows caused by systemvolumeplugin 2020-11-19 23:28:44 +03:00

This plugin allows to control the system volume.