device: add media.class to global properties

This commit is contained in:
Wim Taymans 2018-11-28 11:12:36 +01:00
parent bf43b55d16
commit 417c1cd756
2 changed files with 4 additions and 3 deletions

View file

@ -111,12 +111,11 @@ pw_spa_device_new(struct pw_core *core,
impl->user_data = SPA_MEMBER(impl, sizeof(struct impl), void);
pw_device_add_listener(this, &impl->device_listener, &device_events, impl);
pw_device_set_implementation(this, impl->device);
if (!SPA_FLAG_CHECK(impl->flags, PW_SPA_DEVICE_FLAG_NO_REGISTER))
pw_device_register(this, impl->owner, impl->parent, NULL);
pw_device_set_implementation(this, impl->device);
return this;
}