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

Refine SRT code, with StateThread adpater

This commit is contained in:
hondaxiao 2022-04-15 13:54:24 +08:00 committed by winlin
parent 3ed4aed824
commit 94fa0ff7bd
25 changed files with 4131 additions and 68 deletions

View file

@ -22,6 +22,10 @@
#include <srs_app_rtc_conn.hpp>
#endif
#ifdef SRS_SRT
#include <srs_app_srt_source.hpp>
#endif
#include <string>
using namespace std;
@ -298,6 +302,10 @@ srs_error_t srs_thread_initialize()
_srs_stages = new SrsStageManager();
_srs_circuit_breaker = new SrsCircuitBreaker();
#ifdef SRS_SRT
_srs_srt_sources = new SrsSrtSourceManager();
#endif
#ifdef SRS_RTC
_srs_rtc_sources = new SrsRtcSourceManager();
_srs_blackhole = new SrsRtcBlackhole();