client-device: first set implementation, then register

Setting the implementation updates the properties so that we
have more info when creating the global.
This commit is contained in:
Wim Taymans 2020-08-03 18:11:12 +02:00
parent 7f7a8ccc88
commit d57da19f26

View file

@ -53,9 +53,9 @@ static void device_info(void *data, const struct spa_device_info *info)
{ {
struct impl *impl = data; struct impl *impl = data;
if (!impl->registered) { if (!impl->registered) {
pw_impl_device_register(impl->device, NULL);
pw_impl_device_set_implementation(impl->device, pw_impl_device_set_implementation(impl->device,
(struct spa_device*)impl->resource); (struct spa_device*)impl->resource);
pw_impl_device_register(impl->device, NULL);
impl->registered = true; impl->registered = true;
} }
} }