mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
tighten up media bug code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7217 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b9b66953ef
commit
82d5e9c9fb
4 files changed
+76
-59
No files matched your search
@@ -411,7 +411,12 @@ static void launch_threads(void)
|
||||
source->channels = (uint8_t)tmp;
|
||||
}
|
||||
} else if (!strcasecmp(var, "interval")) {
|
||||
source->interval = atoi(val);
|
||||
int tmp = atoi(val);
|
||||
if (tmp >= 10) {
|
||||
source->interval = tmp;
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't set interval to less than 10\n");
|
||||
}
|
||||
} else if (!strcasecmp(var, "timer-name")) {
|
||||
source->timer_name = switch_core_strdup(source->pool, val);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user