mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse-server: module-zeroconf-publish: remove unnecessary emit
Since !737 it is not required of modules to emit the "loaded" event if they can load immediately, therefore remove the unnecessary `module_emit_loaded()` call. Furthermore remove redundant log messages as well.
This commit is contained in:
parent
61bcd4f988
commit
58e254ec63
1 changed files with 0 additions and 5 deletions
|
|
@ -602,9 +602,6 @@ static int module_zeroconf_publish_load(struct client *client, struct module *mo
|
||||||
pw_manager_add_listener(data->manager, &data->manager_listener,
|
pw_manager_add_listener(data->manager, &data->manager_listener,
|
||||||
&manager_events, data);
|
&manager_events, data);
|
||||||
|
|
||||||
pw_log_info("loaded module %p id:%u name:%s", module, module->idx, module->name);
|
|
||||||
module_emit_loaded(module, 0);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -612,8 +609,6 @@ static int module_zeroconf_publish_unload(struct client *client, struct module *
|
||||||
{
|
{
|
||||||
struct module_zeroconf_publish_data *d = module->user_data;
|
struct module_zeroconf_publish_data *d = module->user_data;
|
||||||
|
|
||||||
pw_log_info("unload module %p id:%u name:%s", module, module->idx, module->name);
|
|
||||||
|
|
||||||
pw_manager_for_each_object(d->manager, service_free, d);
|
pw_manager_for_each_object(d->manager, service_free, d);
|
||||||
|
|
||||||
if (d->client)
|
if (d->client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue