Reset cut to 0 when exceeded
This commit is contained in:
parent
b40b56475e
commit
7495ddfebf
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ namespace Controller {
|
|||
checker[jit->first].lastms = trackIt->second["lastms"].asInt();
|
||||
checker[jit->first].last_active = currTime;
|
||||
}
|
||||
if (trackIt->second["firsms"].asInt() > Storage["streams"][jit->first]["cut"].asInt()){
|
||||
Storage["streams"][jit->first].removeMember("cut");
|
||||
}
|
||||
//check H264 tracks for optimality
|
||||
if (jit->second.isMember("meta") && jit->second["meta"].isMember("tracks")){
|
||||
for (JSON::ObjIter trIt = jit->second["meta"]["tracks"].ObjBegin(); trIt != jit->second["meta"]["tracks"].ObjEnd(); trIt++){
|
||||
|
|
Loading…
Add table
Reference in a new issue