mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Refine the init of global objects
This commit is contained in:
parent
276bd2223e
commit
3256c7c2fa
20 changed files with 412 additions and 153 deletions
|
@ -46,9 +46,9 @@ using namespace std;
|
|||
#include <srs_protocol_utility.hpp>
|
||||
|
||||
extern SrsPps* _srs_pps_rpkts;
|
||||
SrsPps* _srs_pps_rstuns = new SrsPps();
|
||||
SrsPps* _srs_pps_rrtps = new SrsPps();
|
||||
SrsPps* _srs_pps_rrtcps = new SrsPps();
|
||||
SrsPps* _srs_pps_rstuns = NULL;
|
||||
SrsPps* _srs_pps_rrtps = NULL;
|
||||
SrsPps* _srs_pps_rrtcps = NULL;
|
||||
extern SrsPps* _srs_pps_addrs;
|
||||
extern SrsPps* _srs_pps_fast_addrs;
|
||||
|
||||
|
@ -132,10 +132,10 @@ void SrsRtcBlackhole::sendto(void* data, int len)
|
|||
srs_sendto(blackhole_stfd, data, len, (sockaddr*)blackhole_addr, sizeof(sockaddr_in), SRS_UTIME_NO_TIMEOUT);
|
||||
}
|
||||
|
||||
SrsRtcBlackhole* _srs_blackhole = new SrsRtcBlackhole();
|
||||
SrsRtcBlackhole* _srs_blackhole = NULL;
|
||||
|
||||
// @global dtls certficate for rtc module.
|
||||
SrsDtlsCertificate* _srs_rtc_dtls_certificate = new SrsDtlsCertificate();
|
||||
SrsDtlsCertificate* _srs_rtc_dtls_certificate = NULL;
|
||||
|
||||
// TODO: Should support error response.
|
||||
// For STUN packet, 0x00 is binding request, 0x01 is binding success response.
|
||||
|
@ -777,5 +777,5 @@ void RtcServerAdapter::stop()
|
|||
{
|
||||
}
|
||||
|
||||
SrsResourceManager* _srs_rtc_manager = new SrsResourceManager("RTC", true);
|
||||
SrsResourceManager* _srs_rtc_manager = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue