aboutsummaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-03-05 18:07:52 +0100
committerdec05eba <dec05eba@protonmail.com>2025-03-05 18:07:52 +0100
commit5f3a14d3f6ccd74ac4bfb4736861f7fd9937eeb6 (patch)
tree58de24e160ac92a579163adc392ffd62163637e2 /src/sound.cpp
parent0129ab140d63b096f15b3f46e420109f54fbdddb (diff)
Rename window_wayland to wayland and window_x11 to x11
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index aaf8ef5..5a0ce77 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -124,7 +124,7 @@ static void subscribe_update_default_devices(pa_context*, const pa_server_info *
static void subscribe_cb(pa_context *c, pa_subscription_event_type_t t, uint32_t idx, void *userdata) {
(void)idx;
pa_handle *handle = (pa_handle*)userdata;
- if(t & PA_SUBSCRIPTION_EVENT_FACILITY_MASK) {
+ if((t & PA_SUBSCRIPTION_EVENT_FACILITY_MASK) == PA_SUBSCRIPTION_EVENT_SERVER) {
pa_operation *pa = pa_context_get_server_info(c, subscribe_update_default_devices, handle);
if(pa)
pa_operation_unref(pa);