Merge pull request #3195 from cg2121/windows-vcam-fix

win-dshow: Fix virtual camera enable bug
master
Jim 2020-07-20 08:00:45 -07:00 committed by GitHub
commit 857c21b3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -42,12 +42,12 @@ bool obs_module_load(void)
RegisterDShowEncoders();
obs_register_output(&virtualcam_info);
if (vcam_installed(false)) {
obs_data_t *obs_settings = obs_data_create();
obs_data_set_bool(obs_settings, "vcamEnabled", true);
obs_apply_private_data(obs_settings);
obs_data_release(obs_settings);
}
bool installed = vcam_installed(false);
obs_data_t *obs_settings = obs_data_create();
obs_data_set_bool(obs_settings, "vcamEnabled", installed);
obs_apply_private_data(obs_settings);
obs_data_release(obs_settings);
return true;
}