mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Support interval ratio for pithy print
This commit is contained in:
parent
9d08318581
commit
2e56aeba96
2 changed files with 11 additions and 5 deletions
|
@ -39,10 +39,12 @@ public:
|
|||
int nb_clients;
|
||||
// The number of call of can_print().
|
||||
uint32_t nn_count;
|
||||
// The ratio for interval, 1.0 means no change.
|
||||
double interval_ratio;
|
||||
public:
|
||||
srs_utime_t age;
|
||||
public:
|
||||
SrsStageInfo(int _stage_id);
|
||||
SrsStageInfo(int _stage_id, double ratio = 1.0);
|
||||
virtual ~SrsStageInfo();
|
||||
virtual void update_print_time();
|
||||
public:
|
||||
|
@ -74,10 +76,11 @@ public:
|
|||
// The number of call of can_print().
|
||||
uint32_t nn_count;
|
||||
private:
|
||||
double ratio_;
|
||||
SrsStageManager stages;
|
||||
std::map<int, srs_utime_t> ticks;
|
||||
public:
|
||||
SrsErrorPithyPrint();
|
||||
SrsErrorPithyPrint(double ratio = 1.0);
|
||||
virtual ~SrsErrorPithyPrint();
|
||||
public:
|
||||
// Whether specified stage is ready for print.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue