mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
cli: set error when connection failed
This commit is contained in:
parent
49a4440692
commit
8917e1e149
1 changed files with 3 additions and 1 deletions
|
|
@ -423,8 +423,10 @@ static bool do_connect(struct data *data, const char *cmd, char *args, char **er
|
|||
props = pw_properties_new(PW_KEY_REMOTE_NAME, a[0], NULL);
|
||||
}
|
||||
core_proxy = pw_core_connect(data->core, props, sizeof(struct remote_data));
|
||||
if (core_proxy == NULL)
|
||||
if (core_proxy == NULL) {
|
||||
asprintf(error, "failed to connect: %m");
|
||||
return false;
|
||||
}
|
||||
|
||||
rd = pw_proxy_get_user_data((struct pw_proxy*)core_proxy);
|
||||
rd->core_proxy = core_proxy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue