瀏覽代碼

Update TranscodingJobHelper.cs

BaronGreenback 4 年之前
父節點
當前提交
bbf196c7bd
共有 1 個文件被更改,包括 5 次插入0 次删除
  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