From d5974b9e306ac4383cdcd15af751aef2341cf126 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 3 Mar 2020 21:08:43 -0800 Subject: [PATCH] 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). --- plugins/win-capture/window-capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/window-capture.c b/plugins/win-capture/window-capture.c index 7f5e1a919..5a569d8bc 100644 --- a/plugins/win-capture/window-capture.c +++ b/plugins/win-capture/window-capture.c @@ -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,