FF-1359 - fixing issue with read video info not using local file

This commit is contained in:
John Andrews
2024-02-27 08:30:33 +13:00
parent 2955cda84a
commit b33ae66ab1

View File

@@ -47,8 +47,15 @@ namespace FileFlows.VideoNodes
{
try
{
var localFileResult = args.FileService.GetLocalPath(args.WorkingFile);
if (localFileResult.Failed(out string lfError))
{
args.FailureReason = "Failed getting local file: " + lfError;
args.Logger.ILog(args.FailureReason);
return -1;
}
var videoInfoResult = new VideoInfoHelper(FFMPEG, args.Logger).Read(args.WorkingFile);
var videoInfoResult = new VideoInfoHelper(FFMPEG, args.Logger).Read(localFileResult.Value);
if (videoInfoResult.Failed(out string error))
{
args.Logger.ELog(error);