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

for #319, support render HTTP RAW API in console.

This commit is contained in:
winlin 2015-08-27 23:55:59 +08:00
parent 8e635d9749
commit 555a3fbf5f
3 changed files with 15 additions and 0 deletions

View file

@ -275,6 +275,15 @@ SrsStatisticVhost* SrsStatistic::find_vhost(int vid)
return NULL;
}
SrsStatisticVhost* SrsStatistic::find_vhost(string name)
{
std::map<string, SrsStatisticVhost*>::iterator it;
if ((it = rvhosts.find(name)) != rvhosts.end()) {
return it->second;
}
return NULL;
}
SrsStatisticStream* SrsStatistic::find_stream(int sid)
{
std::map<int64_t, SrsStatisticStream*>::iterator it;