aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs38
1 files changed, 1 insertions, 37 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
index be9c548cf..546b1ec5f 100644
--- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
+++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs
@@ -1,5 +1,4 @@
-using MediaBrowser.Common.IO;
-using MediaBrowser.Common.Net;
+using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Dlna;
@@ -475,41 +474,6 @@ namespace MediaBrowser.Api.Playback.Hls
await Task.Delay(100, cancellationToken).ConfigureAwait(false);
}
- // if a different file is encoding, it's done
- //var currentTranscodingIndex = GetCurrentTranscodingIndex(playlistPath);
- //if (currentTranscodingIndex > segmentIndex)
- //{
- //return GetSegmentResult(segmentPath, segmentIndex);
- //}
-
- //// Wait for the file to stop being written to, then stream it
- //var length = new FileInfo(segmentPath).Length;
- //var eofCount = 0;
-
- //while (eofCount < 10)
- //{
- // var info = new FileInfo(segmentPath);
-
- // if (!info.Exists)
- // {
- // break;
- // }
-
- // var newLength = info.Length;
-
- // if (newLength == length)
- // {
- // eofCount++;
- // }
- // else
- // {
- // eofCount = 0;
- // }
-
- // length = newLength;
- // await Task.Delay(100, cancellationToken).ConfigureAwait(false);
- //}
-
cancellationToken.ThrowIfCancellationRequested();
return GetSegmentResult(state, segmentPath, segmentIndex, transcodingJob);
}