mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_dash_timeshift in time unit
This commit is contained in:
parent
12cf17ef6b
commit
5937304717
5 changed files with 14 additions and 12 deletions
|
@ -5929,9 +5929,9 @@ srs_utime_t SrsConfig::get_dash_update_period(string vhost)
|
|||
return (srs_utime_t)(::atof(conf->arg0().c_str()) * SRS_UTIME_SECONDS);
|
||||
}
|
||||
|
||||
int SrsConfig::get_dash_timeshift(string vhost)
|
||||
srs_utime_t SrsConfig::get_dash_timeshift(string vhost)
|
||||
{
|
||||
static int DEFAULT = 60 * 1000;
|
||||
static srs_utime_t DEFAULT = 60 * SRS_UTIME_SECONDS;
|
||||
|
||||
SrsConfDirective* conf = get_dash(vhost);
|
||||
if (!conf) {
|
||||
|
@ -5943,7 +5943,7 @@ int SrsConfig::get_dash_timeshift(string vhost)
|
|||
return DEFAULT;
|
||||
}
|
||||
|
||||
return (int)(1000 * ::atof(conf->arg0().c_str()));
|
||||
return (srs_utime_t)(::atof(conf->arg0().c_str()) * SRS_UTIME_SECONDS);
|
||||
}
|
||||
|
||||
string SrsConfig::get_dash_path(string vhost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue