update segment handler

This commit is contained in:
Luke Pulverenti 2017-04-06 16:07:07 -04:00
parent dd8edd28e9
commit fd71890247

View File

@ -443,7 +443,7 @@ namespace MediaBrowser.Api.Playback.Hls
var currentTranscodingIndex = GetCurrentTranscodingIndex(playlistPath, segmentExtension); var currentTranscodingIndex = GetCurrentTranscodingIndex(playlistPath, segmentExtension);
// If requested segment is less than transcoding position, we can't transcode backwards, so assume it's ready // If requested segment is less than transcoding position, we can't transcode backwards, so assume it's ready
if (segmentIndex < currentTranscodingIndex) if (segmentIndex != currentTranscodingIndex)
{ {
return await GetSegmentResult(state, segmentPath, segmentIndex, transcodingJob).ConfigureAwait(false); return await GetSegmentResult(state, segmentPath, segmentIndex, transcodingJob).ConfigureAwait(false);
} }