Do not crash on missing total frames - thx SarahElGayyar :)

Related to #5613
This commit is contained in:
niksedk 2021-12-17 03:07:45 +01:00
parent d567266289
commit 4be49e560b

View File

@ -234,9 +234,12 @@ namespace Nikse.SubtitleEdit.Forms
File.WriteAllText(assaTempFileName, format.ToText(_assaSubtitle, null));
groupBoxSettings.Enabled = false;
labelPleaseWait.Visible = true;
if (_videoInfo.TotalFrames > 0)
{
progressBar1.Maximum = (int)_videoInfo.TotalFrames;
progressBar1.Visible = true;
labelPleaseWait.Visible = true;
}
if (checkBoxTargetFileSize.Checked)
{