From 85d71a45c514b9ae660a4068fb2f499ce6f93627 Mon Sep 17 00:00:00 2001 From: pbodilis Date: Tue, 30 May 2017 14:13:57 +0200 Subject: [PATCH] fix rtp_session_rtcp_send --- src/rtpsession_inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtpsession_inet.c b/src/rtpsession_inet.c index ccd615eb..52b24d7e 100644 --- a/src/rtpsession_inet.c +++ b/src/rtpsession_inet.c @@ -1269,11 +1269,11 @@ rtp_session_rtcp_send (RtpSession * session, mblk_t * m){ if (session->rtcp.enabled){ if ( (sockfd!=(ortp_socket_t)-1 && (destlen>0 || using_connected_socket)) || rtp_session_using_transport(session, rtcp) ) { - rtp_session_rtcp_sendto(session,m,destaddr,destlen,FALSE); + error=rtp_session_rtcp_sendto(session,m,destaddr,destlen,FALSE); } for(elem=session->rtcp.gs.aux_destinations;elem!=NULL;elem=elem->next){ OrtpAddress *addr=(OrtpAddress*)elem->data; - rtp_session_rtcp_sendto(session,m,(struct sockaddr*)&addr->addr,addr->len,TRUE); + error=rtp_session_rtcp_sendto(session,m,(struct sockaddr*)&addr->addr,addr->len,TRUE); } }else ortp_message("Not sending rtcp report, rtcp disabled."); freemsg(m);