From 2a0828e7a24ecd2a0923c655424c225d44a67f75 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 23 Oct 2020 10:09:40 +0200 Subject: [PATCH] pulse: emit sink/source changes when pending After we get the Route update, schedule subscription events when there are changes pending. When we scheduled a volume change ourselves, it is likely that nothing got changed by the route update but we still have to emit the subscription event to notify the new volume. Fixes #298 --- pipewire-pulseaudio/src/context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pipewire-pulseaudio/src/context.c b/pipewire-pulseaudio/src/context.c index 6941c7b34..01b289d30 100644 --- a/pipewire-pulseaudio/src/context.c +++ b/pipewire-pulseaudio/src/context.c @@ -904,10 +904,9 @@ static void device_sync_ports(struct global *g) } if (props) changed += parse_props(ng, props, true); - if (changed) { - ng->changed += changed; + ng->changed += changed; + if (ng->changed) global_sync(ng); - } } } }