Minor change/refact

This commit is contained in:
Nikolaj Olsson 2018-10-25 18:30:04 +02:00
parent 9e1c628c3e
commit dce9899b2c
2 changed files with 9 additions and 2 deletions

View File

@ -75,7 +75,13 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Tesseract
TesseractErrors.Add(LastError);
return "Error!";
}
process.WaitForExit(5000);
process.WaitForExit(8000);
if (process.HasExited && process.ExitCode != 0)
{
LastError = "Tesseract returned with code " + process.ExitCode;
TesseractErrors.Add(LastError);
}
}
string result = string.Empty;
@ -92,7 +98,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Tesseract
}
File.Delete(imageFileName);
}
catch
catch
{
// ignored
}

View File

@ -314,6 +314,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
}
catch
{
// ignored
}
}
_quartzVideo = null;