mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-22 11:19:25 +01:00
try/catch for UpdateFfmpegProgress
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user