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

refine config, add comments

This commit is contained in:
winlin 2014-07-18 12:12:25 +08:00
parent a5f4323ea8
commit 2f0a72d7d1
3 changed files with 64 additions and 52 deletions

View file

@ -2549,17 +2549,17 @@ int SrsConfig::get_dvr_time_jitter(string vhost)
return _srs_time_jitter_string2int(time_jitter);
}
SrsConfDirective* SrsConfig::get_http_api()
{
return root->get("http_api");
}
bool SrsConfig::get_http_api_enabled()
{
SrsConfDirective* conf = get_http_api();
return get_http_api_enabled(conf);
}
SrsConfDirective* SrsConfig::get_http_api()
{
return root->get("http_api");
}
bool SrsConfig::get_http_api_enabled(SrsConfDirective* conf)
{
if (!conf) {
@ -2590,17 +2590,17 @@ int SrsConfig::get_http_api_listen()
return ::atoi(conf->arg0().c_str());
}
SrsConfDirective* SrsConfig::get_http_stream()
{
return root->get("http_stream");
}
bool SrsConfig::get_http_stream_enabled()
{
SrsConfDirective* conf = get_http_stream();
return get_http_stream_enabled(conf);
}
SrsConfDirective* SrsConfig::get_http_stream()
{
return root->get("http_stream");
}
bool SrsConfig::get_http_stream_enabled(SrsConfDirective* conf)
{
if (!conf) {