Set original after adding typeIndex

This commit is contained in:
HaveAGitGat 2024-05-10 06:39:07 +01:00
parent 35ba66e705
commit 136d8f2a90

View file

@ -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,