mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Stat the RTP and payload objects
This commit is contained in:
parent
6dac180627
commit
e7529ce9dc
2 changed files with 13 additions and 3 deletions
|
@ -76,6 +76,8 @@ extern SrsPps* _srs_pps_rhnack;
|
|||
extern SrsPps* _srs_pps_rmnack;
|
||||
|
||||
extern SrsPps* _srs_pps_objs_rtps;
|
||||
extern SrsPps* _srs_pps_objs_rraw;
|
||||
extern SrsPps* _srs_pps_objs_rfua;
|
||||
|
||||
SrsRtcBlackhole::SrsRtcBlackhole()
|
||||
{
|
||||
|
@ -679,9 +681,9 @@ srs_error_t SrsRtcServer::notify(int type, srs_utime_t interval, srs_utime_t tic
|
|||
static char buf[128];
|
||||
|
||||
string objs_desc;
|
||||
_srs_pps_objs_rtps->update();
|
||||
if (_srs_pps_objs_rtps->r10s()) {
|
||||
snprintf(buf, sizeof(buf), ", objs=%d", _srs_pps_objs_rtps->r10s());
|
||||
_srs_pps_objs_rtps->update(); _srs_pps_objs_rraw->update(); _srs_pps_objs_rfua->update();
|
||||
if (_srs_pps_objs_rtps->r10s() || _srs_pps_objs_rraw->r10s() || _srs_pps_objs_rfua->r10s()) {
|
||||
snprintf(buf, sizeof(buf), ", objs=%d,%d,%d", _srs_pps_objs_rtps->r10s(), _srs_pps_objs_rraw->r10s(), _srs_pps_objs_rfua->r10s());
|
||||
objs_desc = buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue