胡斌

fix the bug of set_config_static doesn't take effect when reload

... ... @@ -1011,6 +1011,8 @@ int SrsConfig::reload_conf(SrsConfig* conf)
return ret;
}
set_config_static();
return ret;
}
... ... @@ -2095,6 +2097,10 @@ int SrsConfig::check_config()
void SrsConfig::set_config_static()
{
if(this != _srs_config){
return;
}
SrsConfDirective* conf = root->get("speex2aac");
if(conf){
if(conf->arg0() == "on"){
... ...