aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/MediaEncoding
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2023-08-20 20:06:57 +0200
committerGitHub <noreply@github.com>2023-08-20 20:06:57 +0200
commit956e3dab43413798909a85a958231c3a16ac7b7f (patch)
tree43d96ad727638ae86c42ef9eac2c4de5dc7c1635 /MediaBrowser.Controller/MediaEncoding
parent260680d727cd96b149ddf122be05feb4772a0dc7 (diff)
fix: accessing Standard* of a Process requires manually disposing them afterwards (#10125)
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding')
-rw-r--r--MediaBrowser.Controller/MediaEncoding/JobLogger.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/JobLogger.cs b/MediaBrowser.Controller/MediaEncoding/JobLogger.cs
index 3b34af4e9..3d288b9f8 100644
--- a/MediaBrowser.Controller/MediaEncoding/JobLogger.cs
+++ b/MediaBrowser.Controller/MediaEncoding/JobLogger.cs
@@ -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)
{