[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:38:20 CET 2009


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 11 20:03:18 2009 +0200| [c8c84505d09a587a9d4735d6e4eeba56681a1965] | committer: Rémi Denis-Courmont 

RTP: allow odd RTP ports for TCP & DCCP

At the moment, we assume RTP/RTCP multiplexing anyhow.
(cherry picked from commit 21191c277ea3bf6e20ac326e26765c35d3a578b0)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8c84505d09a587a9d4735d6e4eeba56681a1965
---

 modules/demux/rtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/rtp.c b/modules/demux/rtp.c
index 1890552..5f8959d 100644
--- a/modules/demux/rtp.c
+++ b/modules/demux/rtp.c
@@ -199,14 +199,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