Delete vid if it exists for some reason

This commit is contained in:
N00MKRAD
2021-05-17 09:30:34 +02:00
parent 97338d0022
commit b6539eee02

View File

@@ -181,6 +181,7 @@ namespace Flowframes.Media
string containerExt = Path.GetExtension(interpVideo);
string tempPath = Path.Combine(tempFolder, $"vid{containerExt}");
string outPath = Path.Combine(tempFolder, $"muxed{containerExt}");
IOUtils.TryDeleteIfExists(tempPath);
File.Move(interpVideo, tempPath);
string inName = Path.GetFileName(tempPath);
string outName = Path.GetFileName(outPath);