Browse Source

update ffmpeg path config

Luke Pulverenti 9 years ago
parent
commit
39ed3696ad
1 changed files with 5 additions and 0 deletions
  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))