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:
parent
94afe6c56e
commit
928d863e50
3 changed files with 13 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue