Performance update

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-20 17:48:11 -04:00
parent 2c56e75ca5
commit 6fbeee841f
17 changed files with 179 additions and 173 deletions

View File

@@ -27,7 +27,7 @@ namespace MediaBrowser.Controller.FFMpeg
{
}
await Run(item.Path, outputCachePath);
await Run(item.Path, outputCachePath).ConfigureAwait(false);
using (FileStream stream = File.OpenRead(outputCachePath))
{
@@ -49,7 +49,7 @@ namespace MediaBrowser.Controller.FFMpeg
{
}
await Run(item.Path, outputCachePath);
await Run(item.Path, outputCachePath).ConfigureAwait(false);
using (FileStream stream = File.OpenRead(outputCachePath))
{
@@ -88,7 +88,7 @@ namespace MediaBrowser.Controller.FFMpeg
// If we ever decide to disable the ffmpeg log then you must uncomment the below line.
process.BeginErrorReadLine();
await process.StandardOutput.BaseStream.CopyToAsync(stream);
await process.StandardOutput.BaseStream.CopyToAsync(stream).ConfigureAwait(false);
process.WaitForExit();