mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine init of global objects
This commit is contained in:
parent
b1e85664a1
commit
8b58d18a5a
6 changed files with 53 additions and 29 deletions
|
@ -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