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

Fix build fail

This commit is contained in:
winlin 2021-02-10 16:27:09 +08:00
parent 2aa94c643c
commit b7c7d6566f
2 changed files with 11 additions and 7 deletions

View file

@ -28,6 +28,10 @@ using namespace std;
#include <srs_kernel_error.hpp>
#include <srs_kernel_log.hpp>
#include <srs_protocol_kbps.hpp>
SrsPps* _srs_pps_timer = new SrsPps(_srs_clock);
ISrsHourGlass::ISrsHourGlass()
{
}
@ -36,8 +40,9 @@ ISrsHourGlass::~ISrsHourGlass()
{
}
SrsHourGlass::SrsHourGlass(ISrsHourGlass* h, srs_utime_t resolution)
SrsHourGlass::SrsHourGlass(string label, ISrsHourGlass* h, srs_utime_t resolution)
{
label_ = label;
handler = h;
_resolution = resolution;
total_elapse = 0;
@ -99,6 +104,8 @@ srs_error_t SrsHourGlass::cycle()
srs_utime_t interval = it->second;
if (interval == 0 || (total_elapse % interval) == 0) {
++_srs_pps_timer->sugar;
if ((err = handler->notify(event, interval, total_elapse)) != srs_success) {
return srs_error_wrap(err, "notify");
}