mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine srs_update_system_time in time unit
This commit is contained in:
parent
9b1222a79c
commit
9b7c0802a9
17 changed files with 64 additions and 47 deletions
|
@ -265,7 +265,7 @@ srs_error_t SrsMpdWriter::get_fragment(bool video, std::string& home, std::strin
|
|||
|
||||
home = fragment_home;
|
||||
|
||||
sn = srs_update_system_time_ms() * SRS_UTIME_MILLISECONDS / fragment;
|
||||
sn = srs_update_system_time() / fragment;
|
||||
basetime = sn * srsu2ms(fragment);
|
||||
|
||||
if (video) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue