mac-videotoolbox: Remove guard for hardware acceleration check
parent
297ec9e957
commit
a001f97e3c
|
@ -1086,15 +1086,13 @@ bool obs_module_load(void)
|
|||
VT_DICTSTR(kVTVideoEncoderList_EncoderID, id);
|
||||
VT_DICTSTR(kVTVideoEncoderList_DisplayName, disp_name);
|
||||
|
||||
bool hardware_accelerated = false;
|
||||
if (__builtin_available(macOS 10.14, *)) {
|
||||
CFBooleanRef hardware_ref = CFDictionaryGetValue(
|
||||
encoder_dict,
|
||||
kVTVideoEncoderList_IsHardwareAccelerated);
|
||||
if (hardware_ref)
|
||||
hardware_accelerated =
|
||||
CFBooleanGetValue(hardware_ref);
|
||||
}
|
||||
|
||||
bool hardware_accelerated =
|
||||
(hardware_ref) ? CFBooleanGetValue(hardware_ref)
|
||||
: false;
|
||||
|
||||
info.id = id;
|
||||
struct vt_encoder_type_data *type_data =
|
||||
|
|
Loading…
Reference in New Issue