Modules: Fix build fail for global variables.

This commit is contained in:
winlin
2021-04-25 13:34:57 +08:00
parent 00a8eef580
commit f9d9f3a373
2 changed files with 6 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ ISrsContext* _srs_context = new SrsThreadContext();
// @global config object for app module.
SrsConfig* _srs_config = new SrsConfig();
// @global Other variables.
bool _srs_in_docker = false;
/**
* main entrance.
*/

View File

@@ -44,6 +44,9 @@ ISrsContext* _srs_context = new SrsThreadContext();
// @global config object for app module.
SrsConfig* _srs_config = new SrsConfig();
// @global Other variables.
bool _srs_in_docker = false;
srs_error_t parse(std::string mp4_file, bool verbose)
{
srs_error_t err = srs_success;