win-dshow: Fix virtual camera enable bug

master
Clayton Groeneveld 2020-07-20 06:02:16 -05:00
parent ae29ec5239
commit f4223ad061
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)) {
bool installed = vcam_installed(false);
obs_data_t *obs_settings = obs_data_create();
obs_data_set_bool(obs_settings, "vcamEnabled", true);
obs_data_set_bool(obs_settings, "vcamEnabled", installed);
obs_apply_private_data(obs_settings);
obs_data_release(obs_settings);
}
return true;
}