Fixed null reference when using batch queue

This commit is contained in:
N00MKRAD
2021-05-11 22:49:43 +02:00
parent 4a4ce1eb7e
commit be0a4077a5

View File

@@ -140,8 +140,9 @@ namespace Flowframes.Forms
async Task<Fraction> GetFramerate (string path)
{
Fraction fps = Interpolate.current.inFps;
Fraction fps = (Interpolate.current != null) ? Interpolate.current.inFps : new Fraction();
Fraction fpsFromFile = await IOUtils.GetFpsFolderOrVideo(path);
if (fpsFromFile.GetFloat() > 0)
return fpsFromFile;