mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-27 11:44:02 +00:00
reduce stdout redirection
This commit is contained in:
parent
3043d0687f
commit
22601f0a2e
4 changed files with 10 additions and 10 deletions
|
|
@ -81,7 +81,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
UseShellExecute = false,
|
||||
|
||||
// Must consume both stdout and stderr or deadlocks may occur
|
||||
RedirectStandardOutput = true,
|
||||
//RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
RedirectStandardInput = true,
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
cancellationToken.Register(() => Cancel(process, encodingJob));
|
||||
|
||||
// MUST read both stdout and stderr asynchronously or a deadlock may occurr
|
||||
process.BeginOutputReadLine();
|
||||
//process.BeginOutputReadLine();
|
||||
|
||||
// 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(encodingJob, process.StandardError.BaseStream, encodingJob.LogFileStream);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue