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

Refine kbps, stub wall clock

This commit is contained in:
winlin 2018-12-23 20:47:17 +08:00
parent 4c40370986
commit c26b475bae
15 changed files with 70 additions and 27 deletions

View file

@ -35,7 +35,8 @@ using namespace std;
SrsBasicRtmpClient::SrsBasicRtmpClient(string u, int64_t ctm, int64_t stm)
{
kbps = new SrsKbps(new SrsWallClock());
clk = new SrsWallClock();
kbps = new SrsKbps(clk);
url = u;
connect_timeout = ctm;
@ -55,6 +56,7 @@ SrsBasicRtmpClient::~SrsBasicRtmpClient()
{
close();
srs_freep(kbps);
srs_freep(clk);
}
srs_error_t SrsBasicRtmpClient::connect()