win-capture: Disable correct capture method index

When "Automatic" was added, the index for the item that needed to be
disabled became incorrect (to disable WCG).
This commit is contained in:
jp9000
2020-03-03 21:08:43 -08:00
parent a0f700e737
commit d5974b9e30

View File

@@ -323,7 +323,7 @@ static obs_properties_t *wc_properties(void *data)
obs_property_list_add_int(p, TEXT_METHOD_AUTO, METHOD_AUTO);
obs_property_list_add_int(p, TEXT_METHOD_BITBLT, METHOD_BITBLT);
obs_property_list_add_int(p, TEXT_METHOD_WGC, METHOD_WGC);
obs_property_list_item_disable(p, 1, !wc->wgc_supported);
obs_property_list_item_disable(p, 2, !wc->wgc_supported);
obs_property_set_modified_callback(p, wc_capture_method_changed);
p = obs_properties_add_list(ppts, "priority", TEXT_MATCH_PRIORITY,