Explorar o código

Added compiler warning overrides

Tim Hobbs %!s(int64=11) %!d(string=hai) anos
pai
achega
dd4a1ff4b5

+ 2 - 0
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -929,8 +929,10 @@ namespace MediaBrowser.Api.Playback
             // MUST read both stdout and stderr asynchronously or a deadlock may occurr
             // MUST read both stdout and stderr asynchronously or a deadlock may occurr
             process.BeginOutputReadLine();
             process.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 playback
             // Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playback
             process.StandardError.BaseStream.CopyToAsync(state.LogFileStream);
             process.StandardError.BaseStream.CopyToAsync(state.LogFileStream);
+#pragma warning restore 4014
 
 
             // Wait for the file to exist before proceeeding
             // Wait for the file to exist before proceeeding
             while (!File.Exists(outputPath))
             while (!File.Exists(outputPath))

+ 2 - 0
MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs

@@ -886,8 +886,10 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
 
 
             var memoryStream = new MemoryStream();
             var 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 playback
             // Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playback
             process.StandardOutput.BaseStream.CopyToAsync(memoryStream);
             process.StandardOutput.BaseStream.CopyToAsync(memoryStream);
+#pragma warning restore 4014
 
 
             // MUST read both stdout and stderr asynchronously or a deadlock may occurr
             // MUST read both stdout and stderr asynchronously or a deadlock may occurr
             process.BeginErrorReadLine();
             process.BeginErrorReadLine();

+ 2 - 0
MediaBrowser.ServerApplication/ApplicationHost.cs

@@ -755,7 +755,9 @@ namespace MediaBrowser.ServerApplication
 #if DEBUG
 #if DEBUG
                 return false;
                 return false;
 #endif
 #endif
+#pragma warning disable 162
                 return NativeApp.CanSelfUpdate;
                 return NativeApp.CanSelfUpdate;
+#pragma warning restore 162
             }
             }
         }
         }