正在显示
2 个修改的文件
包含
16 行增加
和
0 行删除
| @@ -368,6 +368,12 @@ int SrsServer::cycle() | @@ -368,6 +368,12 @@ int SrsServer::cycle() | ||
| 368 | { | 368 | { |
| 369 | int ret = ERROR_SUCCESS; | 369 | int ret = ERROR_SUCCESS; |
| 370 | 370 | ||
| 371 | + // ingest streams | ||
| 372 | + if ((ret = ingest_streams()) != ERROR_SUCCESS) { | ||
| 373 | + srs_error("ingest streams failed. ret=%d", ret); | ||
| 374 | + return ret; | ||
| 375 | + } | ||
| 376 | + | ||
| 371 | // the deamon thread, update the time cache | 377 | // the deamon thread, update the time cache |
| 372 | while (true) { | 378 | while (true) { |
| 373 | st_usleep(SRS_TIME_RESOLUTION_MS * 1000); | 379 | st_usleep(SRS_TIME_RESOLUTION_MS * 1000); |
| @@ -439,6 +445,15 @@ void SrsServer::on_signal(int signo) | @@ -439,6 +445,15 @@ void SrsServer::on_signal(int signo) | ||
| 439 | } | 445 | } |
| 440 | } | 446 | } |
| 441 | 447 | ||
| 448 | +int SrsServer::ingest_streams() | ||
| 449 | +{ | ||
| 450 | + int ret = ERROR_SUCCESS; | ||
| 451 | +#ifdef SRS_INGEST | ||
| 452 | + | ||
| 453 | +#endif | ||
| 454 | + return ret; | ||
| 455 | +} | ||
| 456 | + | ||
| 442 | void SrsServer::close_listeners() | 457 | void SrsServer::close_listeners() |
| 443 | { | 458 | { |
| 444 | std::vector<SrsListener*>::iterator it; | 459 | std::vector<SrsListener*>::iterator it; |
| @@ -100,6 +100,7 @@ public: | @@ -100,6 +100,7 @@ public: | ||
| 100 | virtual void remove(SrsConnection* conn); | 100 | virtual void remove(SrsConnection* conn); |
| 101 | virtual void on_signal(int signo); | 101 | virtual void on_signal(int signo); |
| 102 | private: | 102 | private: |
| 103 | + virtual int ingest_streams(); | ||
| 103 | virtual void close_listeners(); | 104 | virtual void close_listeners(); |
| 104 | virtual int accept_client(SrsListenerType type, st_netfd_t client_stfd); | 105 | virtual int accept_client(SrsListenerType type, st_netfd_t client_stfd); |
| 105 | public: | 106 | public: |
-
请 注册 或 登录 后发表评论