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:
parent
4c40370986
commit
c26b475bae
15 changed files with 70 additions and 27 deletions
|
@ -39,7 +39,8 @@ SrsConnection::SrsConnection(IConnectionManager* cm, srs_netfd_t c, string cip)
|
|||
create_time = srs_get_system_time_ms();
|
||||
|
||||
skt = new SrsStSocket();
|
||||
kbps = new SrsKbps(new SrsWallClock());
|
||||
clk = new SrsWallClock();
|
||||
kbps = new SrsKbps(clk);
|
||||
kbps->set_io(skt, skt);
|
||||
|
||||
trd = new SrsSTCoroutine("conn", this);
|
||||
|
@ -50,6 +51,7 @@ SrsConnection::~SrsConnection()
|
|||
dispose();
|
||||
|
||||
srs_freep(kbps);
|
||||
srs_freep(clk);
|
||||
srs_freep(skt);
|
||||
srs_freep(trd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue