浏览代码

update ffmpeg path config

Luke Pulverenti 9 年之前
父节点
当前提交
39ed3696ad
共有 1 个文件被更改,包括 5 次插入0 次删除
  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))