Ensure all globals have PW_KEY_OBJECT_SERIAL prop

This avoids the caller having to set this property.
This commit is contained in:
Demi Marie Obenour 2024-01-16 13:25:39 -05:00 committed by Wim Taymans
parent ac28abbadf
commit 30419c37df
17 changed files with 9 additions and 69 deletions

View file

@ -441,10 +441,6 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
struct pw_context *context = pw_impl_module_get_context(module);
struct pw_properties *props;
struct impl *impl;
static const char * const keys[] = {
PW_KEY_OBJECT_SERIAL,
NULL
};
PW_LOG_TOPIC_INIT(mod_topic);
@ -483,8 +479,6 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
impl->flush_event = pw_loop_add_event(impl->main_loop, do_flush_event, impl);
pw_global_update_keys(impl->global, &impl->properties->dict, keys);
pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));