From: Michael Jerris Date: Wed, 28 Apr 2010 22:34:57 +0000 (-0400) Subject: windows needs sockets too X-Git-Tag: git2svn-syncpoint-master~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b51e97e0a6aee3bc89107afcbf84422cb51e7cd;p=thirdparty%2Ffreeswitch.git windows needs sockets too --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index b8b5185745..137b7999ed 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -955,15 +955,12 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s } switch_socket_opt_set(new_sock, SWITCH_SO_NONBLOCK, FALSE); +#endif old_sock = rtp_session->sock_input; rtp_session->sock_input = new_sock; new_sock = NULL; - -#endif - - if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_NOBLOCK)) { switch_socket_opt_set(rtp_session->sock_input, SWITCH_SO_NONBLOCK, TRUE); switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_NOBLOCK);