Browse Source

Merge pull request #4187 from BaronGreenback/FFMPegErrorMsg

Fix for #4184 when no FFMPEG path set.
Anthony Lavado 4 năm trước cách đây
mục cha
commit
25bfef58fc
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Jellyfin.Api/Helpers/TranscodingJobHelper.cs

+ 5 - 0
Jellyfin.Api/Helpers/TranscodingJobHelper.cs

@@ -504,6 +504,11 @@ namespace Jellyfin.Api.Helpers
                 }
             }
 
+            if (string.IsNullOrEmpty(_mediaEncoder.EncoderPath))
+            {
+                throw new ArgumentException("FFMPEG path not set.");
+            }
+
             var process = new Process
             {
                 StartInfo = new ProcessStartInfo