1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00

Refine init of global variables

This commit is contained in:
winlin 2021-05-08 10:25:04 +08:00
parent e8f7c913b0
commit b6f2745822
2 changed files with 4 additions and 2 deletions

View file

@ -63,9 +63,10 @@ public:
public:
SrsPps();
virtual ~SrsPps();
public:
private:
// Setup the clock, use global clock if not set.
void set_clock(SrsWallClock* clk);
public:
// Update with the nn which is target.
void update();
// Update with the nn.

View file

@ -29,6 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_config.hpp>
#include <srs_app_log.hpp>
#include <srs_app_rtc_dtls.hpp>
#include <srs_app_threads.hpp>
#include <string>
using namespace std;
@ -54,7 +55,7 @@ bool _srs_in_docker = false;
srs_error_t prepare_main() {
srs_error_t err = srs_success;
if ((err = srs_st_init()) != srs_success) {
if ((err = srs_thread_initialize()) != srs_success) {
return srs_error_wrap(err, "init st");
}