fix typo to fix build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4317 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0884c559ef
commit
6322a73341
|
@ -279,9 +279,9 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(void)
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_session, char *host, switch_port_t port, const char **err)
|
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_socket_t *new_sock = NULL, *old_sock = NULL;
|
||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
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) {
|
if (switch_sockaddr_info_get(&rtp_session->local_addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool) != SWITCH_STATUS_SUCCESS) {
|
||||||
*err = "Local Address Error!";
|
*err = "Local Address Error!";
|
||||||
|
@ -576,7 +576,7 @@ SWITCH_DECLARE(void) switch_rtp_destroy(switch_rtp_t **rtp_session)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rtp_session->ready = 0;
|
(*rtp_session)->ready = 0;
|
||||||
|
|
||||||
switch_mutex_lock((*rtp_session)->flag_mutex);
|
switch_mutex_lock((*rtp_session)->flag_mutex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue