mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
fix: accessing Standard* of a Process requires manually disposing them afterwards (#10125)
This commit is contained in:
@@ -511,7 +511,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
using (var processWrapper = new ProcessWrapper(process, this))
|
||||
{
|
||||
StartProcess(processWrapper);
|
||||
await process.StandardOutput.BaseStream.CopyToAsync(memoryStream, cancellationToken).ConfigureAwait(false);
|
||||
using var reader = process.StandardOutput;
|
||||
await reader.BaseStream.CopyToAsync(memoryStream, cancellationToken).ConfigureAwait(false);
|
||||
memoryStream.Seek(0, SeekOrigin.Begin);
|
||||
InternalMediaInfoResult result;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user