mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pulse-server: send server change events when default nodes change
Send server change events to subscribers, when default nodes change due to some nodes being added/removed/changed, also if there is no metadata change. Make sure the event is consistent with the result from find_device at the time. Previously, these were not necessarily sent, or information from find_device immediately after the event might not reflect the change yet.
This commit is contained in:
parent
906a1f5448
commit
59452a0904
4 changed files with 51 additions and 9 deletions
|
|
@ -135,7 +135,7 @@ static struct pw_manager_object *select_object(struct pw_manager *m,
|
|||
const char *str;
|
||||
|
||||
spa_list_for_each(o, &m->object_list, link) {
|
||||
if (o->creating)
|
||||
if (o->creating || o->removing)
|
||||
continue;
|
||||
if (s->type != NULL && !s->type(o))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue