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

add args3

This commit is contained in:
winlin 2015-09-17 14:03:25 +08:00
parent 1fd83d9314
commit 225e742657
2 changed files with 20 additions and 10 deletions

View file

@ -670,6 +670,15 @@ string SrsConfDirective::arg2()
return "";
}
string SrsConfDirective::arg3()
{
if (args.size() > 3) {
return args.at(3);
}
return "";
}
SrsConfDirective* SrsConfDirective::at(int index)
{
srs_assert(index < (int)directives.size());