mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix async call and hls_nb_notify bug.
This commit is contained in:
parent
5d37e47783
commit
e5b8e0da01
4 changed files with 31 additions and 28 deletions
|
@ -2440,22 +2440,6 @@ SrsConfDirective* SrsConfig::get_vhost_on_hls_notify(string vhost)
|
|||
return conf->get("on_hls_notify");
|
||||
}
|
||||
|
||||
int SrsConfig::get_vhost_hls_nb_notify(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost_http_hooks(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return SRS_CONF_DEFAULT_HLS_NB_NOTIFY;
|
||||
}
|
||||
|
||||
conf = conf->get("hls_nb_notify");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return SRS_CONF_DEFAULT_HLS_NB_NOTIFY;
|
||||
}
|
||||
|
||||
return ::atoi(conf->arg0().c_str());
|
||||
}
|
||||
|
||||
bool SrsConfig::get_bw_check_enabled(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
@ -3434,6 +3418,22 @@ string SrsConfig::get_hls_vcodec(string vhost)
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
int SrsConfig::get_vhost_hls_nb_notify(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_hls(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return SRS_CONF_DEFAULT_HLS_NB_NOTIFY;
|
||||
}
|
||||
|
||||
conf = conf->get("hls_nb_notify");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return SRS_CONF_DEFAULT_HLS_NB_NOTIFY;
|
||||
}
|
||||
|
||||
return ::atoi(conf->arg0().c_str());
|
||||
}
|
||||
|
||||
bool SrsConfig::get_hls_cleanup(string vhost)
|
||||
{
|
||||
SrsConfDirective* hls = get_hls(vhost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue