Selaa lähdekoodia

Update TranscodingJobHelper.cs

BaronGreenback 4 vuotta sitten
vanhempi
sitoutus
bbf196c7bd
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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