The Free Software Media System - Server Backend & API
update encoding log
Luke Pulverentia4f1c264b098
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex 45f1a64c9b..dce29f6de2 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -1033,7 +1033,7 @@ namespace MediaBrowser.Api.Playbackprocess.BeginOutputReadLine();// Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playback- StartStreamingLog(transcodingJob, state, process.StandardError.BaseStream, state.LogFileStream);+ Task.Run(() => StartStreamingLog(transcodingJob, state, process.StandardError.BaseStream, state.LogFileStream));// Wait for the file to exist before proceeedingwhile (!FileSystem.FileExists(state.WaitForPath ?? outputPath) && !transcodingJob.HasExited)@@ -1076,7 +1076,7 @@ namespace MediaBrowser.Api.Playbackreturn true;}- private async void StartStreamingLog(TranscodingJob transcodingJob, StreamState state, Stream source, Stream target)+ private async Task StartStreamingLog(TranscodingJob transcodingJob, StreamState state, Stream source, Stream target){try{