don't attempt to connect to empty remote name

Fixes jconvolver startup.

See #744
This commit is contained in:
Wim Taymans 2021-02-18 10:22:39 +01:00
parent 81ebc33b57
commit 7053936ffd
4 changed files with 6 additions and 6 deletions

View file

@ -5484,9 +5484,9 @@ get_server_name(struct pw_context *context)
if (props)
name = pw_properties_get(props, PW_KEY_REMOTE_NAME);
if (name == NULL)
if (name == NULL || name[0] == '\0')
name = getenv("PIPEWIRE_REMOTE");
if (name == NULL)
if (name == NULL || name[0] == '\0')
name = PW_DEFAULT_REMOTE;
return name;
}