mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix http hooks dvr bug, check dvr macro
This commit is contained in:
parent
2a8db3ab83
commit
f0b54678ad
2 changed files with 6 additions and 0 deletions
|
@ -325,6 +325,8 @@ void SrsHttpHooks::on_stop(string url, int client_id, string ip, SrsRequest* req
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SRS_AUTO_DVR
|
||||||
|
|
||||||
void SrsHttpHooks::on_dvr_hss_reap_flv_header(std::string url, SrsRequest* req, std::string header_file)
|
void SrsHttpHooks::on_dvr_hss_reap_flv_header(std::string url, SrsRequest* req, std::string header_file)
|
||||||
{
|
{
|
||||||
int ret = ERROR_SUCCESS;
|
int ret = ERROR_SUCCESS;
|
||||||
|
@ -432,3 +434,5 @@ void SrsHttpHooks::on_dvr_hss_reap_flv(string url, SrsRequest* req, SrsFlvSegmen
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -96,6 +96,7 @@ public:
|
||||||
* ignore if empty.
|
* ignore if empty.
|
||||||
*/
|
*/
|
||||||
static void on_stop(std::string url, int client_id, std::string ip, SrsRequest* req);
|
static void on_stop(std::string url, int client_id, std::string ip, SrsRequest* req);
|
||||||
|
#ifdef SRS_AUTO_DVR
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* on_dvr_hss_reap_flv_header hook, when dvr write flv file header.
|
* on_dvr_hss_reap_flv_header hook, when dvr write flv file header.
|
||||||
|
@ -111,6 +112,7 @@ public:
|
||||||
* @param segment the current flv segment.
|
* @param segment the current flv segment.
|
||||||
*/
|
*/
|
||||||
static void on_dvr_hss_reap_flv(std::string url, SrsRequest* req, SrsFlvSegment* segment);
|
static void on_dvr_hss_reap_flv(std::string url, SrsRequest* req, SrsFlvSegment* segment);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue