瀏覽代碼

Use all system cores when threads are set to auto or bigger than the amount of system's cores

Fernando Fernández 4 年之前
父節點
當前提交
d7cdaeea7d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -2344,7 +2344,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             // Automatic
             if (threads <= 0 || threads >= Environment.ProcessorCount)
             {
-                return 0;
+                return Environment.ProcessorCount;
             }
 
             return threads;