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:
parent
de48b477ae
commit
e7714cd445
9 changed files with 48 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue