1
0
Fork 0
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:
winlin 2021-05-08 11:29:19 +08:00
parent 8b58d18a5a
commit 4cf6da107c
2 changed files with 12 additions and 3 deletions

View file

@ -70,10 +70,10 @@ srs_error_t run_hybrid_server();
void show_macro_features();
// @global log and context.
ISrsLog* _srs_log = new SrsFileLog();
ISrsContext* _srs_context = new SrsThreadContext();
ISrsLog* _srs_log = NULL;
ISrsContext* _srs_context = NULL;
// @global config object for app module.
SrsConfig* _srs_config = new SrsConfig();
SrsConfig* _srs_config = NULL;
// @global version of srs, which can grep keyword "XCORE"
extern const char* _srs_version;