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

support server cycle handler. 2.0.153.

This commit is contained in:
winlin 2015-03-31 18:06:55 +08:00
parent 3b4bd194b6
commit 717d088376
10 changed files with 85 additions and 15 deletions

View file

@ -457,6 +457,21 @@ SrsJsonAny* SrsJsonObject::ensure_property_string(string name)
return prop;
}
SrsJsonAny* SrsJsonObject::ensure_property_integer(string name)
{
SrsJsonAny* prop = get_property(name);
if (!prop) {
return NULL;
}
if (!prop->is_integer()) {
return NULL;
}
return prop;
}
SrsJsonAny* SrsJsonObject::ensure_property_boolean(string name)
{
SrsJsonAny* prop = get_property(name);