module-rtp: don't use sap port as src port

We bind to the src addr (the interface addr) and so we need a new unused port.
This commit is contained in:
Wim Taymans 2023-07-03 12:28:45 +02:00
parent eaaa0cd99e
commit 4bb85ef6c9

View file

@ -1489,7 +1489,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
} }
} }
} }
if ((res = parse_address(str, port, &impl->src_addr, &impl->src_len)) < 0) { if ((res = parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {
pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res)); pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
goto out; goto out;
} }