Browse Source

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

Fernando Fernández 4 years ago
parent
commit
d7cdaeea7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

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

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