The Free Software Media System - Server Backend & API
Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments
Andrew Mahone7ea05bb86bd3
diff --cc MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.csindex 369e597ea2,0780df7735..4e277826a9--- a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs+++ b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs@@@ -164,20 -166,22 +164,25 @@@ namespace MediaBrowser.MediaEncoding.AtDirectory.CreateDirectory(Path.GetDirectoryName(outputPath));- var processArgs = string.Format("-dump_attachment:{1} {2} -i {0} -t 0 -f null null", inputPath, attachmentStreamIndex, outputPath);+ var processArgs = string.Format(+ CultureInfo.InvariantCulture,+ "-dump_attachment:{1} {2} -i {0} -t 0 -f null null",+ inputPath,+ attachmentStreamIndex,+ outputPath);- var process = _processFactory.Create(new ProcessOptions+ var startInfo = new ProcessStartInfo{- CreateNoWindow = true,- UseShellExecute = false,- EnableRaisingEvents = true,- FileName = _mediaEncoder.EncoderPath,Arguments = processArgs,- IsHidden = true,+ FileName = _mediaEncoder.EncoderPath,+ UseShellExecute = false,+ CreateNoWindow = true,+ WindowStyle = ProcessWindowStyle.Hidden,ErrorDialog = false- });+ };+ var process = new Process+ {+ StartInfo = startInfo+ };_logger.LogInformation("{File} {Arguments}", process.StartInfo.FileName, process.StartInfo.Arguments);