mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
pulse-server: fix some error checks in modules
These should check if the previous pw_manager_new failed.
This commit is contained in:
parent
02e6f9fbca
commit
8e63aa3d10
2 changed files with 2 additions and 2 deletions
|
|
@ -381,7 +381,7 @@ static int module_combine_sink_load(struct client *client, struct module *module
|
|||
return res;
|
||||
|
||||
data->manager = pw_manager_new(data->core);
|
||||
if (client->manager == NULL)
|
||||
if (data->manager == NULL)
|
||||
return -errno;
|
||||
|
||||
pw_manager_add_listener(data->manager, &data->manager_listener,
|
||||
|
|
|
|||
|
|
@ -591,7 +591,7 @@ static int module_zeroconf_publish_load(struct client *client, struct module *mo
|
|||
}
|
||||
|
||||
data->manager = pw_manager_new(data->core);
|
||||
if (client->manager == NULL) {
|
||||
if (data->manager == NULL) {
|
||||
pw_log_error("failed to create pipewire manager: %m");
|
||||
return -errno;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue