mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:29:29 -06:00
FF-1359 - fixing issue with read video info not using local file
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user