mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
fix: accessing Standard* of a Process requires manually disposing them afterwards (#10125)
This commit is contained in:
@@ -20,12 +20,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task StartStreamingLog(EncodingJobInfo state, Stream source, Stream target)
|
||||
public async Task StartStreamingLog(EncodingJobInfo state, StreamReader reader, Stream target)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (target)
|
||||
using (var reader = new StreamReader(source))
|
||||
using (reader)
|
||||
{
|
||||
while (!reader.EndOfStream && reader.BaseStream.CanRead)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user