mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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;
|
||||
}
|
||||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue