mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 21:14:58 -04:00
Remove property list prefill code in mac-avcapture
This commit is contained in:
1 parent
c6712ab462
commit
c2eebd8d1d
1 file changed
+1
-15
@@ -592,22 +592,8 @@ static obs_properties_t av_capture_properties(char const *locale)
|
||||
// TODO: implement manual configuration
|
||||
obs_property_set_enabled(use_preset, false);
|
||||
|
||||
AVCaptureDevice *dev = [AVCaptureDevice
|
||||
defaultDeviceWithMediaType:AVMediaTypeVideo];
|
||||
|
||||
obs_property_t preset_list = obs_properties_add_list(props, "preset",
|
||||
"Preset", OBS_COMBO_TYPE_LIST,
|
||||
obs_properties_add_list(props, "preset", "Preset", OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_STRING);
|
||||
if (dev) {
|
||||
for (NSString *preset in presets()) {
|
||||
if (![dev supportsAVCaptureSessionPreset:preset])
|
||||
continue;
|
||||
|
||||
obs_property_list_add_string(preset_list,
|
||||
preset_names(preset).UTF8String,
|
||||
preset.UTF8String);
|
||||
}
|
||||
}
|
||||
|
||||
return props;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user