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

Refactor code, use pithy print for RTC send.

This commit is contained in:
winlin 2020-04-10 17:42:54 +08:00
parent 94afe6c56e
commit 928d863e50
3 changed files with 13 additions and 5 deletions

View file

@ -112,6 +112,8 @@ SrsPithyPrint::SrsPithyPrint(int _stage_id)
#define SRS_CONSTS_STAGE_EXEC 11
// for the rtc play
#define SRS_CONSTS_STAGE_RTC_PLAY 12
// for the rtc send
#define SRS_CONSTS_STAGE_RTC_SEND 13
SrsPithyPrint* SrsPithyPrint::create_rtmp_play()
{
@ -173,6 +175,11 @@ SrsPithyPrint* SrsPithyPrint::create_rtc_play()
return new SrsPithyPrint(SRS_CONSTS_STAGE_RTC_PLAY);
}
SrsPithyPrint* SrsPithyPrint::create_rtc_send()
{
return new SrsPithyPrint(SRS_CONSTS_STAGE_RTC_SEND);
}
SrsPithyPrint::~SrsPithyPrint()
{
leave_stage();