mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
* increase default MTU
* change default mcast address to 224.0.1.3 * randomize RTP ports by default git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@721 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
998affc984
commit
67b105bd7a
1 changed files with 5 additions and 4 deletions
|
|
@ -63,11 +63,11 @@ PA_MODULE_USAGE(
|
|||
"loop=<loopback to local host?>"
|
||||
)
|
||||
|
||||
#define DEFAULT_PORT 5004
|
||||
#define DEFAULT_PORT 46000
|
||||
#define SAP_PORT 9875
|
||||
#define DEFAULT_DESTINATION "224.0.1.2"
|
||||
#define DEFAULT_DESTINATION "224.0.1.3"
|
||||
#define MEMBLOCKQ_MAXLENGTH (1024*170)
|
||||
#define DEFAULT_MTU 1024
|
||||
#define DEFAULT_MTU 1280
|
||||
#define SAP_INTERVAL 5000000
|
||||
|
||||
static const char* const valid_modargs[] = {
|
||||
|
|
@ -208,6 +208,7 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
port = DEFAULT_PORT + (rand() % 512);
|
||||
if (pa_modargs_get_value_u32(ma, "port", &port) < 0 || port < 1 || port > 0xFFFF) {
|
||||
pa_log(__FILE__": port= expects a numerical argument between 1 and 65535.");
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue