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
This commit is contained in:
Wim Taymans 2020-10-23 10:09:40 +02:00
parent ec40702427
commit 2a0828e7a2

View file

@ -904,13 +904,12 @@ static void device_sync_ports(struct global *g)
}
if (props)
changed += parse_props(ng, props, true);
if (changed) {
ng->changed += changed;
if (ng->changed)
global_sync(ng);
}
}
}
}
static void device_sync(struct global *g)
{