[vlc-devel] commit: RTP: allow odd RTP ports for TCP & DCCP ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 11 19:10:21 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 11 20:03:18 2009 +0200| [21191c277ea3bf6e20ac326e26765c35d3a578b0] | committer: Rémi Denis-Courmont
RTP: allow odd RTP ports for TCP & DCCP
At the moment, we assume RTP/RTCP multiplexing anyhow.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21191c277ea3bf6e20ac326e26765c35d3a578b0
---
modules/access/rtp/rtp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 88fab06..2f881ac 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -208,14 +208,14 @@ static int Open (vlc_object_t *obj)
#ifdef SOCK_DCCP
var_Create (obj, "dccp-service", VLC_VAR_STRING);
var_SetString (obj, "dccp-service", "RTPV"); /* FIXME: RTPA? */
- fd = net_Connect (obj, shost, (sport + 1) & ~1, SOCK_DCCP, tp);
+ fd = net_Connect (obj, shost, sport, SOCK_DCCP, tp);
#else
msg_Err (obj, "DCCP support not included");
#endif
break;
case IPPROTO_TCP:
- fd = net_Connect (obj, shost, (sport + 1) & ~1, SOCK_STREAM, tp);
+ fd = net_Connect (obj, shost, sport, SOCK_STREAM, tp);
break;
}
More information about the vlc-devel
mailing list