The Free Software Media System - Server Backend & API
Added compiler warning overrides
Tim Hobbsdd4a1ff4b50f
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex b97afc217d..926dfe9553 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -929,8 +929,10 @@ namespace MediaBrowser.Api.Playback// MUST read both stdout and stderr asynchronously or a deadlock may occurrprocess.BeginOutputReadLine();+#pragma warning disable 4014// Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playbackprocess.StandardError.BaseStream.CopyToAsync(state.LogFileStream);+#pragma warning restore 4014// Wait for the file to exist before proceeedingwhile (!File.Exists(outputPath))diff --git a/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs b/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.csindex 25b9c687cb..68e9e0c781 100644--- a/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs+++ b/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs@@ -886,8 +886,10 @@ namespace MediaBrowser.Server.Implementations.MediaEncodervar memoryStream = new MemoryStream();+#pragma warning disable 4014// Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playbackprocess.StandardOutput.BaseStream.CopyToAsync(memoryStream);+#pragma warning restore 4014// MUST read both stdout and stderr asynchronously or a deadlock may occurrprocess.BeginErrorReadLine();diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.csindex 479e07ee6c..690d615ff3 100644--- a/MediaBrowser.ServerApplication/ApplicationHost.cs+++ b/MediaBrowser.ServerApplication/ApplicationHost.cs@@ -755,7 +755,9 @@ namespace MediaBrowser.ServerApplication#if DEBUGreturn false;#endif+#pragma warning disable 162return NativeApp.CanSelfUpdate;+#pragma warning restore 162}}