mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine http hooks, donot pass the known variable.
This commit is contained in:
parent
c49bc0628e
commit
3b4bd194b6
6 changed files with 52 additions and 52 deletions
|
@ -520,13 +520,10 @@ int SrsDvrAsyncCallOnDvr::call()
|
|||
return ret;
|
||||
}
|
||||
|
||||
int connection_id = _srs_context->get_id();
|
||||
std::string ip = req->ip;
|
||||
std::string cwd = _srs_config->cwd();
|
||||
std::string file = path;
|
||||
for (int i = 0; i < (int)on_dvr->args.size(); i++) {
|
||||
std::string url = on_dvr->args.at(i);
|
||||
if ((ret = SrsHttpHooks::on_dvr(url, connection_id, ip, req, cwd, file)) != ERROR_SUCCESS) {
|
||||
if ((ret = SrsHttpHooks::on_dvr(url, req, file)) != ERROR_SUCCESS) {
|
||||
srs_error("hook client on_dvr failed. url=%s, ret=%d", url.c_str(), ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue