Skip to content

Commit

Permalink
Fix loading of move action and move value
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jun 17, 2024
1 parent 9fbcb0d commit 3381895
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion move-action-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ static void *move_action_create(obs_data_t *settings, obs_source_t *source)
move_action->end_action.hotkey_id = OBS_INVALID_HOTKEY_ID;
move_action->start_action.reverse = &move_action->move_filter.reverse;
move_action->end_action.reverse = &move_action->move_filter.reverse;
obs_source_update(source, settings);
if ((obs_get_source_output_flags(obs_source_get_id(source)) & OBS_SOURCE_VIDEO) == 0) {
move_action_update(move_action, settings);
} else {
obs_source_update(source, settings);
}
signal_handler_t *sh = obs_get_signal_handler();
signal_handler_connect(sh, "source_rename", move_action_source_rename, move_action);
return move_action;
Expand Down
6 changes: 5 additions & 1 deletion move-value-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ static void *move_value_create(obs_data_t *settings, obs_source_t *source)
{
struct move_value_info *move_value = bzalloc(sizeof(struct move_value_info));
move_filter_init(&move_value->move_filter, source, (void (*)(void *))move_value_start);
obs_source_update(source, settings);
if ((obs_get_source_output_flags(obs_source_get_id(source)) & OBS_SOURCE_VIDEO) == 0) {
move_value_update(move_value, settings);
} else {
obs_source_update(source, settings);
}
return move_value;
}

Expand Down

0 comments on commit 3381895

Please sign in to comment.