Moar DTSCFix fixes - also tweaked MistPlayer behaviour to prevent strange surprises.

This commit is contained in:
Thulinma 2013-03-21 14:37:49 +01:00
parent 78886239e1
commit 46710d2446
2 changed files with 5 additions and 4 deletions

View file

@ -83,9 +83,8 @@ int main(int argc, char** argv){
while (Util::Procs::isActive("Fixer")){ while (Util::Procs::isActive("Fixer")){
Util::sleep(5000); Util::sleep(5000);
} }
std::cerr << "Done!" << std::endl; std::cerr << "Done! Aborting this request to make sure all goes well." << std::endl;
source = DTSC::File(conf.getString("filename")); return 1;
meta = source.getMeta();
} }
JSON::Value pausemark; JSON::Value pausemark;

View file

@ -39,7 +39,9 @@ namespace Converters {
F.seekNext(); F.seekNext();
while ( !F.getJSON().isNull()){ while ( !F.getJSON().isNull()){
nowpack = F.getJSON()["time"].asInt(); if (F.getJSON()["time"].asInt() >= nowpack){
nowpack = F.getJSON()["time"].asInt();
}
if ( !meta.isMember("firstms")){ if ( !meta.isMember("firstms")){
meta["firstms"] = nowpack; meta["firstms"] = nowpack;
} }