try/catch for UpdateFfmpegProgress

This commit is contained in:
n00mkrad
2021-08-28 21:22:59 +02:00
parent c835a199a5
commit c117dd0362

View File

@@ -173,6 +173,8 @@ namespace Flowframes
}
public static void UpdateFfmpegProgress(string ffmpegTime)
{
try
{
Form1 form = Program.mainForm;
long currInDuration = (form.currInDurationCut < form.currInDuration) ? form.currInDurationCut : form.currInDuration;
@@ -188,6 +190,11 @@ namespace Flowframes
int progress = Convert.ToInt32(current / total);
Program.mainForm.SetProgress(progress);
}
catch (Exception e)
{
Logger.Log($"Failed to get ffmpeg progress: {e.Message}", true);
}
}
static string GetAvDir ()
{