1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add packets interval in ms to set the right send_min_interval

This commit is contained in:
winlin 2015-08-19 15:14:26 +08:00
parent de48b477ae
commit e7714cd445
9 changed files with 48 additions and 22 deletions

View file

@ -2518,9 +2518,9 @@ bool SrsConfig::get_tcp_nodelay(string vhost)
return SRS_CONF_PERFER_FALSE(conf->arg0());
}
int SrsConfig::get_send_min_interval(string vhost)
double SrsConfig::get_send_min_interval(string vhost)
{
static int DEFAULT = 0;
static double DEFAULT = 0.0;
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
@ -2532,7 +2532,7 @@ int SrsConfig::get_send_min_interval(string vhost)
return DEFAULT;
}
return ::atoi(conf->arg0().c_str());
return ::atof(conf->arg0().c_str());
}
bool SrsConfig::get_reduce_sequence_header(string vhost)