mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Merge branch '4.0release' into merge/develop
This commit is contained in:
commit
6bab0eb8c8
2 changed files with 7 additions and 3 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <srs_app_rtc_server.hpp>
|
||||
#include <srs_app_rtc_dtls.hpp>
|
||||
#include <srs_app_rtc_conn.hpp>
|
||||
#include <srs_app_log.hpp>
|
||||
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
|
|
@ -42,10 +42,10 @@ int _srs_tmp_port = 11935;
|
|||
srs_utime_t _srs_tmp_timeout = (100 * SRS_UTIME_MILLISECONDS);
|
||||
|
||||
// kernel module.
|
||||
ISrsLog* _srs_log = new MockEmptyLog(SrsLogLevelDisabled);
|
||||
ISrsContext* _srs_context = new SrsThreadContext();
|
||||
ISrsLog* _srs_log = NULL;
|
||||
ISrsContext* _srs_context = NULL;
|
||||
// app module.
|
||||
SrsConfig* _srs_config = new SrsConfig();
|
||||
SrsConfig* _srs_config = NULL;
|
||||
SrsServer* _srs_server = NULL;
|
||||
bool _srs_in_docker = false;
|
||||
|
||||
|
@ -59,6 +59,9 @@ srs_error_t prepare_main() {
|
|||
return srs_error_wrap(err, "init st");
|
||||
}
|
||||
|
||||
srs_freep(_srs_log);
|
||||
_srs_log = new MockEmptyLog(SrsLogLevelDisabled);
|
||||
|
||||
if ((err = _srs_rtc_dtls_certificate->initialize()) != srs_success) {
|
||||
return srs_error_wrap(err, "rtc dtls certificate initialize");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue