mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
if plus a space
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9855 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
16b65a8f22
commit
d0688264c6
@ -616,6 +616,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char
|
||||
mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER|MPG123_MONO_MIX, 0);
|
||||
context->stream_url = switch_core_sprintf(context->memory_pool, "http://%s", path);
|
||||
context->prebuf = handle->prebuf;
|
||||
handle->vol = -4;
|
||||
launch_read_stream_thread(context);
|
||||
} else {
|
||||
mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0);
|
||||
|
@ -128,8 +128,7 @@ static switch_status_t load_config(void)
|
||||
set_global_format(val);
|
||||
} else if (!strcasecmp(var, "loglevel") && !switch_strlen_zero(val)) {
|
||||
log_level = switch_log_str2level(val);
|
||||
if(log_level == SWITCH_LOG_INVALID)
|
||||
{
|
||||
if (log_level == SWITCH_LOG_INVALID) {
|
||||
log_level = SWITCH_LOG_WARNING;
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_request_port(switch_c
|
||||
while (alloc->track[index] && tries < alloc->track_len)
|
||||
{
|
||||
tries++;
|
||||
if(++index >= alloc->track_len) index = 0;
|
||||
if (++index >= alloc->track_len) {
|
||||
index = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (tries < alloc->track_len) {
|
||||
|
@ -538,8 +538,7 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
|
||||
switch (attr->type) {
|
||||
case SWITCH_STUN_ATTR_MAPPED_ADDRESS:
|
||||
if (attr->type) {
|
||||
if(funny)
|
||||
{
|
||||
if (funny) {
|
||||
((switch_stun_ip_t *) attr->value)->address ^= ntohl(0xabcdabcd);
|
||||
}
|
||||
switch_stun_packet_attribute_get_mapped_address(attr, rip, &rport);
|
||||
|
Loading…
x
Reference in New Issue
Block a user