diff --git a/plugins/obs-nvenc/nvenc-helpers.c b/plugins/obs-nvenc/nvenc-helpers.c index 9bd89b03c..024fc7fe9 100644 --- a/plugins/obs-nvenc/nvenc-helpers.c +++ b/plugins/obs-nvenc/nvenc-helpers.c @@ -310,6 +310,7 @@ static bool nvenc_check(void) os_process_args_t *args; struct dstr caps_str = {0}; config_t *config = NULL; + bool success = false; args = os_process_args_create(test_exe); @@ -344,7 +345,7 @@ static bool nvenc_check(void) goto fail; } - bool success = config_get_bool(config, "general", "nvenc_supported"); + success = config_get_bool(config, "general", "nvenc_supported"); if (!success) { const char *error = config_get_string(config, "general", "reason");