mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
removed dead code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user