Delete old vfr files whenever making a new one

This commit is contained in:
N00MKRAD
2021-02-08 21:11:25 +01:00
parent 4048d2f74c
commit 76886c6b6e
3 changed files with 7 additions and 3 deletions

View File

@@ -78,7 +78,6 @@ namespace Flowframes.Main
if (unencodedFrameLines.Count > 0 && (unencodedFrameLines.Count >= (chunkSize + safetyBufferFrames) || !aiRunning)) // Encode every n frames, or after process has exited
{
List<int> frameLinesToEncode = aiRunning ? unencodedFrameLines.Take(chunkSize).ToList() : unencodedFrameLines; // Take all remaining frames if process is done
string lastOfChunk = Path.Combine(interpFramesPath, interpFramesLines[frameLinesToEncode.Last()]);
if (!File.Exists(lastOfChunk))