diff --git a/trunk/src/app/srs_app_http_hooks.cpp b/trunk/src/app/srs_app_http_hooks.cpp index 12c3ce5a8..fb12087cf 100644 --- a/trunk/src/app/srs_app_http_hooks.cpp +++ b/trunk/src/app/srs_app_http_hooks.cpp @@ -325,6 +325,8 @@ void SrsHttpHooks::on_stop(string url, int client_id, string ip, SrsRequest* req return; } +#ifdef SRS_AUTO_DVR + void SrsHttpHooks::on_dvr_hss_reap_flv_header(std::string url, SrsRequest* req, std::string header_file) { int ret = ERROR_SUCCESS; @@ -432,3 +434,5 @@ void SrsHttpHooks::on_dvr_hss_reap_flv(string url, SrsRequest* req, SrsFlvSegmen } #endif + +#endif diff --git a/trunk/src/app/srs_app_http_hooks.hpp b/trunk/src/app/srs_app_http_hooks.hpp index 7785be436..e3a95f11d 100644 --- a/trunk/src/app/srs_app_http_hooks.hpp +++ b/trunk/src/app/srs_app_http_hooks.hpp @@ -96,6 +96,7 @@ public: * ignore if empty. */ static void on_stop(std::string url, int client_id, std::string ip, SrsRequest* req); +#ifdef SRS_AUTO_DVR public: /** * on_dvr_hss_reap_flv_header hook, when dvr write flv file header. @@ -111,6 +112,7 @@ public: * @param segment the current flv segment. */ static void on_dvr_hss_reap_flv(std::string url, SrsRequest* req, SrsFlvSegment* segment); +#endif }; #endif