Skip to content

Commit

Permalink
Corrected logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marnalas committed Jan 10, 2025
1 parent 8dfc4ec commit 7a3d167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ var plugin = function (args) {
&& !defaultSet) {
args.jobLog("Setting stream ".concat(index, " (language ").concat(languageCode, ", channels ").concat(channels, ") has default"));
var disposition = getFFMPEGDisposition(stream, true);
args.jobLog("Original disposition ".concat((_d = stream.disposition) !== null && _d !== void 0 ? _d : 'undefined', "; new disposition ").concat(disposition));
args.jobLog("Original ".concat(JSON.stringify((_d = stream.disposition) !== null && _d !== void 0 ? _d : {}), "; new ").concat(disposition));
stream.outputArgs.push("-c:".concat(index), 'copy', "-disposition:".concat(index), disposition);
defaultSet = true;
}
else {
var disposition = getFFMPEGDisposition(stream, false);
args.jobLog("Original disposition ".concat((_e = stream.disposition) !== null && _e !== void 0 ? _e : 'undefined', "; new disposition ").concat(disposition));
args.jobLog("Original ".concat(JSON.stringify((_e = stream.disposition) !== null && _e !== void 0 ? _e : {}), "}; new ").concat(disposition));
stream.outputArgs.push("-c:".concat(index), 'copy', "-disposition:".concat(index), disposition);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
&& !defaultSet) {
args.jobLog(`Setting stream ${index} (language ${languageCode}, channels ${channels}) has default`);
const disposition = getFFMPEGDisposition(stream as IStreamDisposition, true);
args.jobLog(`Original disposition ${stream.disposition ?? 'undefined'}; new disposition ${disposition}`);
args.jobLog(`Original ${JSON.stringify(stream.disposition ?? {})}; new ${disposition}`);
stream.outputArgs.push(`-c:${index}`, 'copy', `-disposition:${index}`, disposition);
defaultSet = true;
} else {
const disposition = getFFMPEGDisposition(stream as IStreamDisposition, false);
args.jobLog(`Original disposition ${stream.disposition ?? 'undefined'}; new disposition ${disposition}`);
args.jobLog(`Original ${JSON.stringify(stream.disposition ?? {})}}; new ${disposition}`);
stream.outputArgs.push(`-c:${index}`, 'copy', `-disposition:${index}`, disposition);
}
}
Expand Down

0 comments on commit 7a3d167

Please sign in to comment.