提交 902874e3 编写于 作者: P Palana

mac-avcapture: Fix logic error in preset list handling

上级 082e1bff
......@@ -650,7 +650,7 @@ static void fill_presets(AVCaptureDevice *dev, obs_property_t list,
bool preset_found = false;
for (NSString *preset in presets()) {
bool is_current = [preset isEqualToString:current_preset];
bool supported = !dev ||
bool supported = dev &&
[dev supportsAVCaptureSessionPreset:preset];
if (is_current)
......@@ -688,7 +688,7 @@ static bool check_preset(AVCaptureDevice *dev,
bool presets_changed = false;
for (NSString *preset in presets()) {
bool is_listed = [listed member:preset] != nil;
bool supported = !dev ||
bool supported = dev &&
[dev supportsAVCaptureSessionPreset:preset];
if (supported == is_listed)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册