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

refine configure, add cubieboard. use IProtocolStatistic in kbps.

This commit is contained in:
winlin 2014-06-19 11:22:24 +08:00
parent 46c1367fe8
commit 46611ac062
3 changed files with 41 additions and 10 deletions

View file

@ -106,7 +106,7 @@ SrsKbps::~SrsKbps()
{
}
void SrsKbps::set_io(ISrsProtocolReader* in, ISrsProtocolWriter* out)
void SrsKbps::set_io(ISrsProtocolStatistic* in, ISrsProtocolStatistic* out)
{
// set input stream
// now, set start time.

View file

@ -30,8 +30,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_core.hpp>
class ISrsProtocolReader;
class ISrsProtocolWriter;
class ISrsProtocolStatistic;
class ISrsProtocolStatistic;
/**
* a kbps sample, for example, 1minute kbps,
@ -65,8 +65,8 @@ class SrsKbpsSlice
{
private:
union slice_io {
ISrsProtocolReader* in;
ISrsProtocolWriter* out;
ISrsProtocolStatistic* in;
ISrsProtocolStatistic* out;
};
public:
slice_io io;
@ -121,7 +121,7 @@ public:
* @param out the output stream statistic. can be NULL.
* @remark if in/out is NULL, use the cached data for kbps.
*/
virtual void set_io(ISrsProtocolReader* in, ISrsProtocolWriter* out);
virtual void set_io(ISrsProtocolStatistic* in, ISrsProtocolStatistic* out);
public:
/**
* get total kbps, duration is from the startup of io.