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

refine config, return the vhosts vector.

This commit is contained in:
winlin 2014-07-18 10:35:31 +08:00
parent 96e0e699dd
commit f572531eca
3 changed files with 33 additions and 13 deletions

View file

@ -215,8 +215,7 @@ int SrsIngester::parse()
int ret = ERROR_SUCCESS;
// parse ingesters
std::vector<SrsConfDirective*> vhosts;
_srs_config->get_vhosts(vhosts);
std::vector<SrsConfDirective*> vhosts = _srs_config->get_vhosts();
for (int i = 0; i < (int)vhosts.size(); i++) {
SrsConfDirective* vhost = vhosts[i];