Browse Source

Address review comments

Vasily 5 years ago
parent
commit
6b6fede2e0

+ 1 - 0
Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -543,6 +543,7 @@ namespace Emby.Server.Implementations.HttpServer
                 {
                     _logger.LogDebug("Sending HTTP Response 500 in response to {Url}", urlToLog);
                 }
+
                 stopWatch.Stop();
                 var elapsed = stopWatch.Elapsed;
                 if (elapsed.TotalMilliseconds > 500)

+ 4 - 4
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -296,13 +296,13 @@ namespace MediaBrowser.Api.Playback
             _ = new JobLogger(Logger).StartStreamingLog(state, process.StandardError.BaseStream, logStream);
 
             // Wait for the file to exist before proceeeding
-            var waitFor = state.WaitForPath ?? outputPath;
-            Logger.LogDebug("Waiting for the creation of {0}", waitFor);
-            while (!File.Exists(waitFor) && !transcodingJob.HasExited)
+            var ffmpegTargetFile = state.WaitForPath ?? outputPath;
+            Logger.LogDebug("Waiting for the creation of {0}", ffmpegTargetFile);
+            while (!File.Exists(ffmpegTargetFile) && !transcodingJob.HasExited)
             {
                 await Task.Delay(100, cancellationTokenSource.Token).ConfigureAwait(false);
             }
-            Logger.LogDebug("File {0} created or transcoding has finished", waitFor);
+            Logger.LogDebug("File {0} created or transcoding has finished", ffmpegTargetFile);
 
             if (state.IsInputVideo && transcodingJob.Type == TranscodingJobType.Progressive && !transcodingJob.HasExited)
             {