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

refine code to use the one coding style.

This commit is contained in:
winlin 2015-01-05 12:20:46 +08:00
parent 4bb17f0c81
commit 40ed2249e8
3 changed files with 34 additions and 32 deletions

View file

@ -525,8 +525,8 @@ int SrsApiVhosts::do_process_request(SrsStSocket* skt, SrsHttpMessage* req)
std::stringstream ss;
std::set<std::string> vhost_set;
SrsStreamInfoMap* pool = SrsStatistic::instance()->get_pool();
SrsStreamInfoMap::iterator it;
std::map<void*, SrsStreamInfo*>* pool = SrsStatistic::instance()->get_pool();
std::map<void*, SrsStreamInfo*>::iterator it;
for (it = pool->begin(); it != pool->end(); it++) {
if (it->second->_req == NULL)
continue;
@ -572,8 +572,8 @@ int SrsApiStreams::do_process_request(SrsStSocket* skt, SrsHttpMessage* req)
if (query_name.size() > 0 || query_vhost.size() > 0) {
ss << __SRS_JARRAY_START;
bool first = true;
SrsStreamInfoMap* pool = SrsStatistic::instance()->get_pool();
SrsStreamInfoMap::iterator it;
std::map<void*, SrsStreamInfo*>* pool = SrsStatistic::instance()->get_pool();
std::map<void*, SrsStreamInfo*>::iterator it;
for (it = pool->begin(); it != pool->end(); it++) {
SrsRequest* reqinfo = it->second->_req;
if (reqinfo == NULL)