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")){
Util::sleep(5000);
}
std::cerr << "Done!" << std::endl;
source = DTSC::File(conf.getString("filename"));
meta = source.getMeta();
std::cerr << "Done! Aborting this request to make sure all goes well." << std::endl;
return 1;
}
JSON::Value pausemark;

View file

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