record-daemon: fix linux builds
This commit is contained in:
1 parent
fb3a26b961
commit
5121a46533
5 files changed
+154
-20
No files matched your search
@@ -369,11 +369,6 @@ fn is_nvenc_available() -> bool {
|
||||
|| std::path::Path::new("C:\\Windows\\System32\\nvEncMFTH265.dll").exists()
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
fn is_nvenc_available() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Check if AMD AMF is available.
|
||||
#[cfg(target_os = "windows")]
|
||||
fn is_amf_available() -> bool {
|
||||
@@ -381,11 +376,6 @@ fn is_amf_available() -> bool {
|
||||
std::path::Path::new("C:\\Windows\\System32\\amdocl64.dll").exists()
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
fn is_amf_available() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Check if Intel QuickSync is available.
|
||||
#[cfg(target_os = "windows")]
|
||||
fn is_quicksync_available() -> bool {
|
||||
@@ -393,11 +383,6 @@ fn is_quicksync_available() -> bool {
|
||||
std::path::Path::new("C:\\Windows\\System32\\mfx64.dll").exists()
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
fn is_quicksync_available() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Get the best available encoder capability.
|
||||
pub fn best_available_encoder() -> EncoderCapability {
|
||||
let capabilities = detect_hardware_encoders();
|
||||
|
||||
Reference in new issue
Block a user