Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2020-02-12 12:19:23 +01:00
commit 3e607d864e
2 changed files with 4 additions and 1 deletions

View file

@ -533,6 +533,9 @@ namespace Mist {
HIGH_MSG("Wrong order on track %lu ignored: %lu < %lu", tid, packet.getTime(), myMeta.tracks[tid].lastms); HIGH_MSG("Wrong order on track %lu ignored: %lu < %lu", tid, packet.getTime(), myMeta.tracks[tid].lastms);
return; return;
} }
if (packet.getTime() > myMeta.tracks[tid].lastms + 30000 && myMeta.tracks[tid].lastms){
WARN_MSG("Sudden jump in timestamp from %" PRIu64 " to %" PRIu64, myMeta.tracks[tid].lastms, packet.getTime());
}
} }
//Determine if we need to open the next page //Determine if we need to open the next page

View file

@ -306,7 +306,7 @@ namespace Mist {
if ((*it)["type"].asStringRef() == "str" && !p[it.key()].isString()){ if ((*it)["type"].asStringRef() == "str" && !p[it.key()].isString()){
p[it.key()] = p[it.key()].asString(); p[it.key()] = p[it.key()].asString();
} }
if (((*it)["type"].asStringRef() == "uint" || (*it)["type"].asStringRef() == "int") && !p[it.key()].isInt()){ if ((*it)["type"].asStringRef() == "uint" || (*it)["type"].asStringRef() == "int" || (*it)["type"].asStringRef() == "debug"){
p[it.key()] = JSON::Value(p[it.key()].asInt()).asString(); p[it.key()] = JSON::Value(p[it.key()].asInt()).asString();
} }
} }