mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Fixed null reference when using batch queue
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user