From 136d8f2a90f45b7bf3725d109b9ecf32991e629a Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 10 May 2024 06:39:07 +0100 Subject: [PATCH 1/2] Set original after adding typeIndex --- .../ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.ts index 758818c92..a1f3a11a9 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.ts @@ -111,13 +111,13 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => { let streams: IffmpegCommandStream[] = JSON.parse(JSON.stringify(args.variables.ffmpegCommand.streams)); - const originalStreams = JSON.stringify(streams); - streams.forEach((stream, index) => { // eslint-disable-next-line no-param-reassign stream.typeIndex = index; }); + const originalStreams = JSON.stringify(streams); + const sortStreams = (sortType: { inputs: string, getValue: (stream: Istreams) => string, From 562e8831015c5365b40b167022324b9f78018219 Mon Sep 17 00:00:00 2001 From: HaveAGitGat Date: Fri, 10 May 2024 05:41:58 +0000 Subject: [PATCH 2/2] Apply auto-build changes --- .../ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.js index b4b65d455..101d047e7 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandRorderStreams/1.0.0/index.js @@ -80,11 +80,11 @@ var plugin = function (args) { // eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign args.inputs = lib.loadDefaultValues(args.inputs, details); var streams = JSON.parse(JSON.stringify(args.variables.ffmpegCommand.streams)); - var originalStreams = JSON.stringify(streams); streams.forEach(function (stream, index) { // eslint-disable-next-line no-param-reassign stream.typeIndex = index; }); + var originalStreams = JSON.stringify(streams); var sortStreams = function (sortType) { var items = sortType.inputs.split(','); items.reverse();