Skip to content

Commit 68c81bf

Browse files
committed
Possibly fixed incorrect av1an queue length readout
1 parent 6445037 commit 68c81bf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

ff-utils-winforms/Media/Av1anOutputHandler.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,13 @@ public static void LogOutput(string line, string logFilename, LogMode logMode, b
3535

3636
Logger.Log(line, hidden, replaceLastLine, "av1an");
3737

38-
if (line.StartsWith("Queue: "))
39-
TryParseQueueSize(line);
40-
else if (line.Contains("SC: Now at "))
41-
currentQueueSize = line.Split("SC: Now at ")[1].Split(' ')[0].GetInt();
42-
4338
if (line.Contains("Could not open file"))
4439
{
4540
RunTask.Cancel($"Error: {line}");
4641
return;
4742
}
4843
}
4944

50-
static void TryParseQueueSize(string line)
51-
{
52-
try
53-
{
54-
currentQueueSize = line.Split("Queue:")[1].Split("Workers:")[0].GetInt();
55-
}
56-
catch (Exception e)
57-
{
58-
Logger.Log($"Failed to read av1an queue size from line: {line} ({e.Message})", true);
59-
}
60-
}
61-
6245
public static async Task ParseProgressLoop()
6346
{
6447
int workers = Config.GetInt(Config.Key.av1anOptsWorkerCount);

0 commit comments

Comments
 (0)