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")){
|
||||
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;
|
||||
|
|
|
@ -39,7 +39,9 @@ namespace Converters {
|
|||
|
||||
F.seekNext();
|
||||
while ( !F.getJSON().isNull()){
|
||||
nowpack = F.getJSON()["time"].asInt();
|
||||
if (F.getJSON()["time"].asInt() >= nowpack){
|
||||
nowpack = F.getJSON()["time"].asInt();
|
||||
}
|
||||
if ( !meta.isMember("firstms")){
|
||||
meta["firstms"] = nowpack;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue