diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js index 439b51d6b..107ef1cc7 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.js @@ -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); } } diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts index a9a006dac..534ca5467 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetDefaultAudioStream/1.0.0/index.ts @@ -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); } }