mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: native-protocol-tcp: do not hardcode port
Use `PW_PROTOCOL_PULSE_DEFAULT_PORT` from pulse-server.h instead of hard-coding the default port.
This commit is contained in:
parent
70722c0741
commit
279470bc07
1 changed files with 3 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <pipewire/pipewire.h>
|
||||
|
||||
#include "../module.h"
|
||||
#include "../pulse-server.h"
|
||||
#include "registry.h"
|
||||
|
||||
#define ERROR_RETURN(str) \
|
||||
|
|
@ -99,7 +100,8 @@ struct module *create_module_native_protocol_tcp(struct impl *impl, const char *
|
|||
module_args_add_props(props, argument);
|
||||
|
||||
if ((port = pw_properties_get(props, "port")) == NULL)
|
||||
port = "4713";
|
||||
port = SPA_STRINGIFY(PW_PROTOCOL_PULSE_DEFAULT_PORT);
|
||||
|
||||
listen = pw_properties_get(props, "listen");
|
||||
|
||||
pw_properties_setf(props, "pulse.tcp", "tcp:%s%s%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue