mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 15:16:41 +00:00
reduce rescanning due to IsOffline
This commit is contained in:
@@ -586,7 +586,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
{
|
||||
return GetAvailableEncoder(mediaEncoder, "h264_omx", defaultEncoder);
|
||||
}
|
||||
if (string.Equals(hwType, "vaapi", StringComparison.OrdinalIgnoreCase))
|
||||
if (string.Equals(hwType, "vaapi", StringComparison.OrdinalIgnoreCase) && !string.IsNullOrWhiteSpace(options.VaapiDevice))
|
||||
{
|
||||
return GetAvailableEncoder(mediaEncoder, "h264_vaapi", defaultEncoder);
|
||||
}
|
||||
|
||||
@@ -123,20 +123,20 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return "System";
|
||||
}
|
||||
|
||||
if (IsDefaultPath(FFMpegPath))
|
||||
{
|
||||
return "Default";
|
||||
}
|
||||
|
||||
return "Custom";
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsDefaultPath(string path)
|
||||
public bool IsDefaultEncoderPath
|
||||
{
|
||||
var parentPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg", "20160410");
|
||||
get
|
||||
{
|
||||
var path = FFMpegPath;
|
||||
|
||||
return FileSystem.ContainsSubPath(parentPath, path);
|
||||
var parentPath = Path.Combine(ConfigurationManager.ApplicationPaths.ProgramDataPath, "ffmpeg", "20160410");
|
||||
|
||||
return FileSystem.ContainsSubPath(parentPath, path);
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsSystemInstalledPath(string path)
|
||||
|
||||
Reference in New Issue
Block a user