Moar DTSCFix fixes - also tweaked MistPlayer behaviour to prevent strange surprises.
This commit is contained in:
parent
78886239e1
commit
46710d2446
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -39,7 +39,9 @@ namespace Converters {
|
||||||
|
|
||||||
F.seekNext();
|
F.seekNext();
|
||||||
while ( !F.getJSON().isNull()){
|
while ( !F.getJSON().isNull()){
|
||||||
|
if (F.getJSON()["time"].asInt() >= nowpack){
|
||||||
nowpack = F.getJSON()["time"].asInt();
|
nowpack = F.getJSON()["time"].asInt();
|
||||||
|
}
|
||||||
if ( !meta.isMember("firstms")){
|
if ( !meta.isMember("firstms")){
|
||||||
meta["firstms"] = nowpack;
|
meta["firstms"] = nowpack;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue