mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add hds reload supported.#328
This commit is contained in:
parent
abe0713980
commit
643f18abe4
9 changed files with 75 additions and 3 deletions
|
@ -826,6 +826,19 @@ int SrsConfig::reload_vhost(SrsConfDirective* old_root)
|
|||
}
|
||||
srs_trace("vhost %s reload hls success.", vhost.c_str());
|
||||
}
|
||||
|
||||
// hds reload
|
||||
if (!srs_directive_equals(new_vhost->get("hds"), old_vhost->get("hds"))) {
|
||||
for (it = subscribes.begin(); it != subscribes.end(); ++it) {
|
||||
ISrsReloadHandler* subscribe = *it;
|
||||
if ((ret = subscribe->on_reload_vhost_hds(vhost)) != ERROR_SUCCESS) {
|
||||
srs_error("vhost %s notify subscribes hds failed. ret=%d", vhost.c_str(), ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
srs_trace("vhost %s reload hds success.", vhost.c_str());
|
||||
}
|
||||
|
||||
// dvr, only one per vhost
|
||||
if (!srs_directive_equals(new_vhost->get("dvr"), old_vhost->get("dvr"))) {
|
||||
for (it = subscribes.begin(); it != subscribes.end(); ++it) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue