mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
module-rtp: use default source.ip
This commit is contained in:
parent
933743581b
commit
9c45bb9c8d
1 changed files with 3 additions and 2 deletions
|
|
@ -492,8 +492,9 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
pw_log_error("invalid source.port");
|
||||
goto out;
|
||||
}
|
||||
if ((str = pw_properties_get(props, "source.ip")) == NULL ||
|
||||
(res = parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
|
||||
if ((str = pw_properties_get(props, "source.ip")) == NULL)
|
||||
str = DEFAULT_SOURCE_IP;
|
||||
if ((res = parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
|
||||
pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue