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

Kbps: Remove the union for kbps slice

This commit is contained in:
winlin 2019-02-02 18:20:19 +08:00
parent 98706f793e
commit b4619e3393
2 changed files with 16 additions and 21 deletions

View file

@ -65,15 +65,11 @@ public:
class SrsKbpsSlice
{
private:
union slice_io {
ISrsProtocolStatistic* in;
ISrsProtocolStatistic* out;
};
SrsWallClock* clk;
public:
// the slice io used for SrsKbps to invoke,
// the SrsKbpsSlice itself never use it.
slice_io io;
ISrsProtocolStatistic* io;
// session startup bytes
// @remark, use total_bytes() to get the total bytes of slice.
int64_t bytes;