瀏覽代碼

Do not delete segments when seeking

Dominik 2 年之前
父節點
當前提交
e8ae7e5c38
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Jellyfin.Api/Controllers/DynamicHlsController.cs

+ 1 - 3
Jellyfin.Api/Controllers/DynamicHlsController.cs

@@ -1503,9 +1503,7 @@ namespace Jellyfin.Api.Controllers
                         // If the playlist doesn't already exist, startup ffmpeg
                         // If the playlist doesn't already exist, startup ffmpeg
                         try
                         try
                         {
                         {
-                            // Delete old HLS files when segment deletion is active since ffmpeg doesn't clean them up by itself
-                            var deleteFiles = _encodingOptions.EnableThrottling && _encodingOptions.EnableSegmentDeletion;
-                            await _transcodingJobHelper.KillTranscodingJobs(streamingRequest.DeviceId, streamingRequest.PlaySessionId, _ => deleteFiles)
+                            await _transcodingJobHelper.KillTranscodingJobs(streamingRequest.DeviceId, streamingRequest.PlaySessionId, p => false)
                                 .ConfigureAwait(false);
                                 .ConfigureAwait(false);
 
 
                             if (currentTranscodingIndex.HasValue)
                             if (currentTranscodingIndex.HasValue)