Commit b2e5f313 authored by Simon Morlat's avatar Simon Morlat

fix very stupid bugs in various place of oRTP

parent fa567138
......@@ -869,7 +869,7 @@ rtp_session_set_remote_addr_full (RtpSession * session, const char * rtp_addr, i
if (can_connect(session)){
if (try_connect(session->rtp.socket,(struct sockaddr*)&session->rtp.rem_addr,session->rtp.rem_addrlen))
session->flags|=RTP_SOCKET_CONNECTED;
if (session->rtcp.socket>=0){
if (session->rtcp.socket!=(ortp_socket_t)-1){
if (try_connect(session->rtcp.socket,(struct sockaddr*)&session->rtcp.rem_addr,session->rtcp.rem_addrlen))
session->flags|=RTCP_SOCKET_CONNECTED;
}
......@@ -1482,7 +1482,7 @@ rtp_session_rtcp_recv (RtpSession * session)
{
int errnum=getSocketErrorCode();
if (error == 0 || (error=-1 && errnum==0))
if (error == 0 || (error==-1 && errnum==0))
{
/*ortp_warning
("rtcp_recv: strange... recv() returned zero.");*/
......
......@@ -34,7 +34,7 @@ typedef enum {
RTP_SOCKET_CONNECTED=1<<8,
RTCP_SOCKET_CONNECTED=1<<9,
RTP_SESSION_USING_TRANSPORT=1<<10,
RTCP_OVERRIDE_LOST_PACKETS=1<11,
RTCP_OVERRIDE_LOST_PACKETS=1<<11,
RTCP_OVERRIDE_JITTER=1<<12,
RTCP_OVERRIDE_DELAY=1<<13
}RtpSessionFlags;
......
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