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

bravo auto atc per stream. 0.9.84

This commit is contained in:
winlin 2014-04-30 10:17:04 +08:00
parent f02ac02a50
commit 6ee49ee029
4 changed files with 1 additions and 28 deletions

View file

@ -2656,29 +2656,6 @@ string SrsConfig::get_vhost_http_dir(string vhost)
return conf->arg0();
}
void SrsConfig::set_atc(std::string vhost, bool atc)
{
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
return;
}
// create if not exists
if (conf->get("atc") == NULL) {
SrsConfDirective* o = new SrsConfDirective();
o->name = "atc";
conf->directives.push_back(o);
}
// get the atc node
conf = conf->get("atc");
srs_assert(conf);
// refresh
conf->directives.clear();
conf->args.push_back((atc? "true":"false"));
}
bool srs_directive_equals(SrsConfDirective* a, SrsConfDirective* b)
{
// both NULL, equal.