Added compiler warning overrides

This commit is contained in:
Tim Hobbs 2014-03-11 00:54:31 +00:00
parent d50455e046
commit dd4a1ff4b5
3 changed files with 6 additions and 0 deletions

View File

@ -929,8 +929,10 @@ namespace MediaBrowser.Api.Playback
// MUST read both stdout and stderr asynchronously or a deadlock may occurr
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
process.StandardError.BaseStream.CopyToAsync(state.LogFileStream);
#pragma warning restore 4014
// Wait for the file to exist before proceeeding
while (!File.Exists(outputPath))

View File

@ -886,8 +886,10 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
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
process.StandardOutput.BaseStream.CopyToAsync(memoryStream);
#pragma warning restore 4014
// MUST read both stdout and stderr asynchronously or a deadlock may occurr
process.BeginErrorReadLine();

View File

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