Fixed scene detection always running in SBS, even if disabled

This commit is contained in:
N00MKRAD
2021-02-25 11:15:23 +01:00
parent 4d08076711
commit 20ceeee396

View File

@@ -48,11 +48,13 @@ namespace Flowframes.Main
public static async Task ExtractSceneChanges()
{
string scenesPath = Path.Combine(current.tempFolder, Paths.scenesDir);
if (!IOUtils.TryDeleteIfExists(scenesPath))
{
InterpolateUtils.ShowMessage("Failed to delete existing scenes folder - Make sure no file is opened in another program!", "Error");
return;
}
Program.mainForm.SetStatus("Extracting scenes from video...");
await FfmpegExtract.ExtractSceneChanges(current.inPath, scenesPath, current.inFps);
await Task.Delay(10);
@@ -60,7 +62,7 @@ namespace Flowframes.Main
public static async Task ExtractFramesStep()
{
if (!current.inputIsFrames) // Input is video - extract frames first
if (Config.GetBool("scnDetect") && !current.inputIsFrames) // Input is video - extract frames first
await ExtractSceneChanges();
if (!IOUtils.TryDeleteIfExists(current.framesFolder))