Commit 21191c27 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: allow odd RTP ports for TCP & DCCP

At the moment, we assume RTP/RTCP multiplexing anyhow.
parent f0969553
...@@ -208,14 +208,14 @@ static int Open (vlc_object_t *obj) ...@@ -208,14 +208,14 @@ static int Open (vlc_object_t *obj)
#ifdef SOCK_DCCP #ifdef SOCK_DCCP
var_Create (obj, "dccp-service", VLC_VAR_STRING); var_Create (obj, "dccp-service", VLC_VAR_STRING);
var_SetString (obj, "dccp-service", "RTPV"); /* FIXME: RTPA? */ 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 #else
msg_Err (obj, "DCCP support not included"); msg_Err (obj, "DCCP support not included");
#endif #endif
break; break;
case IPPROTO_TCP: case IPPROTO_TCP:
fd = net_Connect (obj, shost, (sport + 1) & ~1, SOCK_STREAM, tp); fd = net_Connect (obj, shost, sport, SOCK_STREAM, tp);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment