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:
parent
3b4bd194b6
commit
717d088376
10 changed files with 85 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue