Fix build fail

pull/2357/head
winlin 4 years ago
parent 4cf6da107c
commit f370259c9d

@ -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…
Cancel
Save