Browse Source

update ffmpeg path config

Luke Pulverenti 9 năm trước cách đây
mục cha
commit
39ed3696ad
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

+ 5 - 0
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

@@ -127,6 +127,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
 
             var appPath = GetEncodingOptions().EncoderAppPath;
 
+            if (string.IsNullOrWhiteSpace(appPath))
+            {
+                appPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg");
+            }
+
             if (!string.IsNullOrWhiteSpace(appPath))
             {
                 if (Directory.Exists(appPath))