Skip to content

Commit

Permalink
Fix import of incomplete settings not resetting duration to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
WarmUpTill committed Jan 23, 2025
1 parent 0b622fd commit 6a58684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void Duration::Load(obs_data_t *obj, const char *name)
// TODO: remove this fallback
if (!data || !obs_data_has_user_value(data, "version") ||
obs_data_get_int(data, "version") != 1) {
_value = 0.;
bool usingDefaultArgs = strcmp("duration", name) == 0;
if (usingDefaultArgs) {
_value = obs_data_get_double(obj, "seconds");
Expand Down

0 comments on commit 6a58684

Please sign in to comment.