From d57da19f260d75cefe4ef48aa1c9768c048bfc7a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 3 Aug 2020 18:11:12 +0200 Subject: [PATCH] client-device: first set implementation, then register Setting the implementation updates the properties so that we have more info when creating the global. --- src/modules/module-client-device/resource-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-client-device/resource-device.c b/src/modules/module-client-device/resource-device.c index e7869c62f..0f5a40b72 100644 --- a/src/modules/module-client-device/resource-device.c +++ b/src/modules/module-client-device/resource-device.c @@ -53,9 +53,9 @@ static void device_info(void *data, const struct spa_device_info *info) { struct impl *impl = data; if (!impl->registered) { - pw_impl_device_register(impl->device, NULL); pw_impl_device_set_implementation(impl->device, (struct spa_device*)impl->resource); + pw_impl_device_register(impl->device, NULL); impl->registered = true; } }