From 0132f62da87203aefbb0355392d326803a5ddc34 Mon Sep 17 00:00:00 2001 From: larry Date: Thu, 23 Nov 2017 21:14:21 +0100 Subject: [PATCH] fix compile warning --- 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 3447b413..3447cd03 100644 --- a/src/rtpsession_inet.c +++ b/src/rtpsession_inet.c @@ -346,11 +346,11 @@ 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);