1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add atc_auto to disable or enable auto detect atc

This commit is contained in:
winlin 2014-04-30 12:08:11 +08:00
parent 30bb3ff704
commit fc501b050b
5 changed files with 31 additions and 6 deletions

View file

@ -1654,7 +1654,7 @@ bool SrsConfig::get_atc(string vhost)
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
return true;
return false;
}
conf = conf->get("atc");
@ -1665,6 +1665,22 @@ bool SrsConfig::get_atc(string vhost)
return false;
}
bool SrsConfig::get_atc_auto(string vhost)
{
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
return true;
}
conf = conf->get("atc_auto");
if (conf && conf->arg0() == "off") {
return false;
}
return true;
}
double SrsConfig::get_queue_length(string vhost)
{
SrsConfDirective* conf = get_vhost(vhost);