fix: accessing Standard* of a Process requires manually disposing them afterwards (#10125)

This commit is contained in:
Claus Vium
2023-08-20 20:06:57 +02:00
committed by GitHub
parent 260680d727
commit 956e3dab43
6 changed files with 56 additions and 48 deletions

View File

@@ -620,7 +620,7 @@ public class TranscodingJobHelper : IDisposable
state.TranscodingJob = transcodingJob;
// Important - don't await the log task or we won't be able to kill FFmpeg when the user stops playback
_ = new JobLogger(_logger).StartStreamingLog(state, process.StandardError.BaseStream, logStream);
_ = new JobLogger(_logger).StartStreamingLog(state, process.StandardError, logStream);
// Wait for the file to exist before proceeding
var ffmpegTargetFile = state.WaitForPath ?? outputPath;