mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +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)
|
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);
|
Fraction fpsFromFile = await IOUtils.GetFpsFolderOrVideo(path);
|
||||||
|
|
||||||
if (fpsFromFile.GetFloat() > 0)
|
if (fpsFromFile.GetFloat() > 0)
|
||||||
return fpsFromFile;
|
return fpsFromFile;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user