Skip to content

Commit 6811012

Browse files
jeieaRytoEX
authored andcommitted
win-capture: Fix warnings with Visual Studio 2022 17.14
Following error occurs with Visual Studio 2022 v17.14 Preview 4.0 and Windows 11 SDK 10.0.26100.0. duplicator-monitor-capture.c(766,35): error C2220: the following warning is treated as an error duplicator-monitor-capture.c(766,35): warning C5287: operands are different enum types 'window_capture_method' and 'display_capture_method'; use an explicit cast to silence this warning The warning is reasonable, so change mismatched enum type. (cherry picked from commit 5567396)
1 parent 8425a69 commit 6811012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/win-capture/duplicator-monitor-capture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ static void update_settings_visibility(obs_properties_t *props, struct duplicato
762762
{
763763
pthread_mutex_lock(&capture->update_mutex);
764764

765-
const enum window_capture_method method = capture->method;
765+
const enum display_capture_method method = capture->method;
766766
const bool dxgi_options = method == METHOD_DXGI;
767767
const bool wgc_options = method == METHOD_WGC;
768768

0 commit comments

Comments
 (0)