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

Refactor pithy print logs

This commit is contained in:
winlin 2020-04-12 16:10:08 +08:00
parent 2b132d6d64
commit d5b3cf9af7
4 changed files with 38 additions and 7 deletions

View file

@ -114,6 +114,8 @@ SrsPithyPrint::SrsPithyPrint(int _stage_id)
#define SRS_CONSTS_STAGE_RTC_PLAY 12
// for the rtc send
#define SRS_CONSTS_STAGE_RTC_SEND 13
// for the rtc recv
#define SRS_CONSTS_STAGE_RTC_RECV 14
SrsPithyPrint* SrsPithyPrint::create_rtmp_play()
{
@ -180,6 +182,11 @@ SrsPithyPrint* SrsPithyPrint::create_rtc_send()
return new SrsPithyPrint(SRS_CONSTS_STAGE_RTC_SEND);
}
SrsPithyPrint* SrsPithyPrint::create_rtc_recv()
{
return new SrsPithyPrint(SRS_CONSTS_STAGE_RTC_RECV);
}
SrsPithyPrint::~SrsPithyPrint()
{
leave_stage();