Fixed GIF timestamp import causing slowdown, fix autoenc logging always running

This commit is contained in:
N00MKRAD
2021-01-06 23:33:00 +01:00
parent abdc846fd3
commit c845cbc15d
5 changed files with 13 additions and 12 deletions

View File

@@ -49,12 +49,12 @@ namespace Flowframes
logStr += " - Waiting for encoding to finish...";
Logger.Log(logStr);
processTime.Stop();
while (Program.busy)
while (Interpolate.currentlyUsingAutoEnc && Program.busy)
{
if(AvProcess.lastProcess != null && !AvProcess.lastProcess.HasExited && AvProcess.lastTask == AvProcess.TaskType.Encode)
{
string lastLine = AvProcess.lastOutputFfmpeg.SplitIntoLines().Last();
Logger.Log(lastLine.Trim(), false, Logger.GetLastLine().Contains("frame"));
Logger.Log(lastLine.Trim().TrimWhitespaces(), false, Logger.GetLastLine().Contains("frame"));
}
await Task.Delay(1000);
}