Skip to content

Commit

Permalink
Merge pull request #629 from HaveAGitGat/reorder_fix
Browse files Browse the repository at this point in the history
Set original after adding typeIndex
  • Loading branch information
HaveAGitGat authored May 10, 2024
2 parents 35ba66e + 562e883 commit 094ef3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 094ef3c

Please sign in to comment.