mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Minor change/refact
This commit is contained in:
parent
9e1c628c3e
commit
dce9899b2c
@ -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
|
||||
}
|
||||
|
@ -314,6 +314,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
_quartzVideo = null;
|
||||
|
Loading…
Reference in New Issue
Block a user