Skip to content

Commit

Permalink
Fix move value get value did not update
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Dec 9, 2024
1 parent dbed9d1 commit 8f010c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions move-value-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,15 @@ bool move_value_get_value(obs_properties_t *props, obs_property_t *property, voi
obs_data_set_double(settings, S_SETTING_FLOAT, value);
obs_data_set_double(settings, S_SETTING_FLOAT_MIN, value);
obs_data_set_double(settings, S_SETTING_FLOAT_MAX, value);
obs_source_update(move_value->move_filter.source, settings);
obs_data_release(settings);
return true;
} else if (strcmp(move_value->setting_name, BALANCE_SETTING) == 0) {
const double value = (double)obs_source_get_balance_value(source) * 100.0;
obs_data_set_double(settings, S_SETTING_FLOAT, value);
obs_data_set_double(settings, S_SETTING_FLOAT_MIN, value);
obs_data_set_double(settings, S_SETTING_FLOAT_MAX, value);
obs_source_update(move_value->move_filter.source, settings);
obs_data_release(settings);
return true;
}
Expand Down Expand Up @@ -724,6 +726,8 @@ bool move_value_get_value(obs_properties_t *props, obs_property_t *property, voi
}
settings_changed = true;
}
if (settings_changed)
obs_source_update(move_value->move_filter.source, settings);
obs_data_release(settings);
obs_properties_destroy(sps);
return settings_changed;
Expand Down

0 comments on commit 8f010c3

Please sign in to comment.