Commit c8c84505 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.
(cherry picked from commit 21191c27)
parent 48024c1b
......@@ -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;
}
......
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