mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
reduce stdout redirection
This commit is contained in:
parent
3043d0687f
commit
22601f0a2e
4 changed files with 10 additions and 10 deletions
|
|
@ -482,7 +482,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
UseShellExecute = false,
|
||||
|
||||
// Must consume both or ffmpeg may hang due to deadlocks. See comments below.
|
||||
RedirectStandardOutput = true,
|
||||
//RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
RedirectStandardInput = true,
|
||||
FileName = FFProbePath,
|
||||
|
|
@ -517,7 +517,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
try
|
||||
{
|
||||
process.BeginErrorReadLine();
|
||||
//process.BeginErrorReadLine();
|
||||
|
||||
var result = _jsonSerializer.DeserializeFromStream<InternalMediaInfoResult>(process.StandardOutput.BaseStream);
|
||||
|
||||
|
|
@ -612,7 +612,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
UseShellExecute = false,
|
||||
|
||||
// Must consume both or ffmpeg may hang due to deadlocks. See comments below.
|
||||
RedirectStandardOutput = true,
|
||||
//RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
RedirectStandardInput = true,
|
||||
FileName = FFMpegPath,
|
||||
|
|
@ -643,7 +643,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
try
|
||||
{
|
||||
process.BeginOutputReadLine();
|
||||
//process.BeginOutputReadLine();
|
||||
|
||||
using (var reader = new StreamReader(process.StandardError.BaseStream))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue