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:
Brian West 2008-10-06 19:21:59 +00:00
parent 16b65a8f22
commit d0688264c6
10 changed files with 22 additions and 21 deletions

View File

@ -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);

View File

@ -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;
}
}

View File

@ -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) {

View File

@ -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);