1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine global or thread-local variables initialize. 4.0.104

This commit is contained in:
winlin 2021-05-08 10:16:40 +08:00
parent e7cce88912
commit e8f7c913b0
6 changed files with 36 additions and 20 deletions

View file

@ -87,6 +87,11 @@ SrsServer* _srs_server = NULL;
srs_error_t do_main(int argc, char** argv)
{
srs_error_t err = srs_success;
// Initialize global or thread-local variables.
if ((err = srs_thread_initialize()) != srs_success) {
return srs_error_wrap(err, "thread init");
}
// TODO: support both little and big endian.
srs_assert(srs_is_little_endian());