正在显示
2 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -325,6 +325,8 @@ void SrsHttpHooks::on_stop(string url, int client_id, string ip, SrsRequest* req | @@ -325,6 +325,8 @@ void SrsHttpHooks::on_stop(string url, int client_id, string ip, SrsRequest* req | ||
| 325 | return; | 325 | return; |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | +#ifdef SRS_AUTO_DVR | ||
| 329 | + | ||
| 328 | void SrsHttpHooks::on_dvr_hss_reap_flv_header(std::string url, SrsRequest* req, std::string header_file) | 330 | void SrsHttpHooks::on_dvr_hss_reap_flv_header(std::string url, SrsRequest* req, std::string header_file) |
| 329 | { | 331 | { |
| 330 | int ret = ERROR_SUCCESS; | 332 | int ret = ERROR_SUCCESS; |
| @@ -432,3 +434,5 @@ void SrsHttpHooks::on_dvr_hss_reap_flv(string url, SrsRequest* req, SrsFlvSegmen | @@ -432,3 +434,5 @@ void SrsHttpHooks::on_dvr_hss_reap_flv(string url, SrsRequest* req, SrsFlvSegmen | ||
| 432 | } | 434 | } |
| 433 | 435 | ||
| 434 | #endif | 436 | #endif |
| 437 | + | ||
| 438 | +#endif |
| @@ -96,6 +96,7 @@ public: | @@ -96,6 +96,7 @@ public: | ||
| 96 | * ignore if empty. | 96 | * ignore if empty. |
| 97 | */ | 97 | */ |
| 98 | static void on_stop(std::string url, int client_id, std::string ip, SrsRequest* req); | 98 | static void on_stop(std::string url, int client_id, std::string ip, SrsRequest* req); |
| 99 | +#ifdef SRS_AUTO_DVR | ||
| 99 | public: | 100 | public: |
| 100 | /** | 101 | /** |
| 101 | * on_dvr_hss_reap_flv_header hook, when dvr write flv file header. | 102 | * on_dvr_hss_reap_flv_header hook, when dvr write flv file header. |
| @@ -111,6 +112,7 @@ public: | @@ -111,6 +112,7 @@ public: | ||
| 111 | * @param segment the current flv segment. | 112 | * @param segment the current flv segment. |
| 112 | */ | 113 | */ |
| 113 | static void on_dvr_hss_reap_flv(std::string url, SrsRequest* req, SrsFlvSegment* segment); | 114 | static void on_dvr_hss_reap_flv(std::string url, SrsRequest* req, SrsFlvSegment* segment); |
| 115 | +#endif | ||
| 114 | }; | 116 | }; |
| 115 | 117 | ||
| 116 | #endif | 118 | #endif |
-
请 注册 或 登录 后发表评论