record-daemon: refactor client.rs, dropping metadata
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m17s
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m17s
This commit is contained in:
@@ -299,10 +299,16 @@ pub fn detect_hardware_encoders() -> Vec<EncoderCapability> {
|
||||
info!("[ENCODER_DETECT] Starting hardware encoder detection...");
|
||||
|
||||
// Software encoding is always available=
|
||||
let mut capabilities = vec![EncoderCapability::Software];
|
||||
let capabilities = vec![EncoderCapability::Software];
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let _capabilities = [EncoderCapability::Software];
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
let mut capabilities = vec![EncoderCapability::Software];
|
||||
let gpu_vendors = detect_gpu_vendors();
|
||||
|
||||
if gpu_vendors.contains(&GpuVendor::Nvidia) {
|
||||
|
||||
Reference in New Issue
Block a user