[Freeswitch-svn] [commit] r4317 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Sun Feb 18 09:33:55 EST 2007


Author: mikej
Date: Sun Feb 18 09:33:55 2007
New Revision: 4317

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
fix typo to fix build

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Sun Feb 18 09:33:55 2007
@@ -279,9 +279,9 @@
 
 SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_session, char *host, switch_port_t port, const char **err)
 {
-	*err = NULL;
 	switch_socket_t *new_sock = NULL, *old_sock = NULL;
 	switch_status_t status = SWITCH_STATUS_FALSE;
+	*err = NULL;
 	
 	if (switch_sockaddr_info_get(&rtp_session->local_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool) != SWITCH_STATUS_SUCCESS) {
 		*err = "Local Address Error!";
@@ -576,7 +576,7 @@
 		return;
 	}
 
-	rtp_session->ready = 0;
+	(*rtp_session)->ready = 0;
 
 	switch_mutex_lock((*rtp_session)->flag_mutex);
 	



More information about the Freeswitch-svn mailing list