diff options
author | phintuka <phintuka> | 2007-06-11 17:27:51 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-06-11 17:27:51 +0000 |
commit | 6268fd35bd376547f685ef9ee9e4680b8b20d0f8 (patch) | |
tree | 456345d72686c4a285644d8f7f21fffa203577e0 /config.c | |
parent | 6749f28e8355c48309bb251067c4a53650ef37f8 (diff) | |
download | xineliboutput-6268fd35bd376547f685ef9ee9e4680b8b20d0f8.tar.gz xineliboutput-6268fd35bd376547f685ef9ee9e4680b8b20d0f8.tar.bz2 |
Force even RTP base (data) port
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.35 2007-05-17 19:04:40 phintuka Exp $ + * $Id: config.c,v 1.36 2007-06-11 17:27:51 phintuka Exp $ * */ @@ -347,7 +347,7 @@ config_t::config_t() { * - will be used if client can't access file directly (nfs etc.) */ strn0cpy(remote_rtp_addr, "224.0.1.9", sizeof(remote_rtp_addr)); - remote_rtp_port = LISTEN_PORT; + remote_rtp_port = (LISTEN_PORT) & (0xfffe); /* even ports only */ remote_rtp_ttl = 1; remote_rtp_always_on = 0; remote_rtp_sap = 1; @@ -541,7 +541,7 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "Remote.UseBroadcast")) remote_usebcast = atoi(Value); else if (!strcasecmp(Name, "Remote.Rtp.Address")) STRN0CPY(remote_rtp_addr, Value); - else if (!strcasecmp(Name, "Remote.Rtp.Port")) remote_rtp_port = atoi(Value); + else if (!strcasecmp(Name, "Remote.Rtp.Port")) remote_rtp_port = (atoi(Value)) & (0xfffe); else if (!strcasecmp(Name, "Remote.Rtp.TTL")) remote_rtp_ttl = atoi(Value); else if (!strcasecmp(Name, "Remote.Rtp.AlwaysOn")) remote_rtp_always_on = atoi(Value); else if (!strcasecmp(Name, "Remote.Rtp.SapAnnouncements")) remote_rtp_sap = atoi(Value); |