Commit 4cea5e6e authored by François Grisez's avatar François Grisez

Fix C90 violation

parent cd13f747
......@@ -346,11 +346,12 @@ void _rtp_session_apply_socket_sizes(RtpSession * session){
int
rtp_session_set_local_addr (RtpSession * session, const char * addr, int rtp_port, int rtcp_port)
{
ortp_socket_t sock;
int sockfamily;
// Stop async rtp recv thread before recreating the socket
rtp_session_reset_recvfrom(session);
ortp_socket_t sock;
int sockfamily;
if (session->rtp.gs.socket!=(ortp_socket_t)-1){
/* don't rebind, but close before*/
_rtp_session_release_sockets(session, FALSE);
......
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