Copy ShotChangeHelper fix

This commit is contained in:
Martijn van Berkel (Flitskikker) 2023-07-15 14:01:07 +02:00
parent 8bc90888c4
commit 1f0d6faf14

View File

@ -28,6 +28,12 @@ namespace Nikse.SubtitleEdit.Core.Common
public static List<double> FromDisk(string videoFileName)
{
var list = new List<double>();
if (string.IsNullOrEmpty(videoFileName))
{
return list;
}
var timeCodesFileName = GetTimeCodesFileName(videoFileName);
if (!File.Exists(timeCodesFileName))
{
@ -41,6 +47,7 @@ namespace Nikse.SubtitleEdit.Core.Common
list.Add(double.Parse(line, CultureInfo.InvariantCulture));
}
}
return list;
}