media-session: (re)schedule rescan after new pending operation

Every time a new operation is started, schedule a rescan. This
ensures that there are no more pending actions before the policy
module scans the nodes.

This has the effect that all devices and nodes are up to data and
ready to be used by policy-node.

Fixes #789
This commit is contained in:
Wim Taymans 2021-03-08 13:20:02 +01:00
parent 59f86df9f3
commit d603c1086a
3 changed files with 6 additions and 0 deletions

View file

@ -960,6 +960,7 @@ static void alsa_udev_object_info(void *data, uint32_t id,
} else {
alsa_update_device(impl, device, info);
}
sm_media_session_schedule_rescan(impl->session);
}
static const struct spa_device_events alsa_udev_events =