|
|
|
@ -435,9 +435,11 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
WindowStyle = ProcessWindowStyle.Hidden,
|
|
|
|
|
ErrorDialog = false
|
|
|
|
|
};
|
|
|
|
|
var process = new Process { StartInfo = processStartInfo, EnableRaisingEvents = true };
|
|
|
|
|
process.Exited += (sender, args) => ((Process)sender).Dispose();
|
|
|
|
|
|
|
|
|
|
int exitCode;
|
|
|
|
|
|
|
|
|
|
using (var process = new Process { StartInfo = processStartInfo, EnableRaisingEvents = true })
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("{0} {1}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
@ -467,7 +469,8 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var exitCode = ranToCompletion ? process.ExitCode : -1;
|
|
|
|
|
exitCode = ranToCompletion ? process.ExitCode : -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var failed = false;
|
|
|
|
|
|
|
|
|
@ -583,9 +586,11 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
WindowStyle = ProcessWindowStyle.Hidden,
|
|
|
|
|
ErrorDialog = false
|
|
|
|
|
};
|
|
|
|
|
var process = new Process { StartInfo = processStartInfo, EnableRaisingEvents = true };
|
|
|
|
|
process.Exited += (sender, args) => ((Process)sender).Dispose();
|
|
|
|
|
|
|
|
|
|
int exitCode;
|
|
|
|
|
|
|
|
|
|
using (var process = new Process { StartInfo = processStartInfo, EnableRaisingEvents = true })
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("{File} {Arguments}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
@ -615,7 +620,8 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var exitCode = ranToCompletion ? process.ExitCode : -1;
|
|
|
|
|
exitCode = ranToCompletion ? process.ExitCode : -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var failed = false;
|
|
|
|
|
|
|
|
|
|