Metadata events for default devices on client connection
When a client adds a listener to metadata events
pw_metadata_add_listener is it supposed to always receive at least one event delivering the default input and output device? On my computer when PulseEffects initializes and adds a metadata listener I always receive an event with the default devices right after the connection is made. As well as the others that come when I change the default in Pavucontrol manually. So I assumed that this would always be the case and used that connection as a way to get the default devices in the initialization. But based on an issue opened by a user today this may not be the case in all configurations https://github.com/wwmm/pulseeffects/issues/896#issuecomment-774094920
Somehow after the user set the default device once things were fixed. And now when PulseEffects initializes it always receives one metadata event with the default devices. According to the user he changed motherboard recently. Maybe this triggered some king of bug in PipeWire and this signal stopped being emitted?