Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion replay-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,14 +1786,22 @@ static void replay_trim_reset_hotkey(void *data, obs_hotkey_id id,
}
}

static void *replay_thread(void *data)
{
struct replay_source *context = data;
replay_hotkey(context, 0, NULL, true);
return NULL;
}

static void replay_source_update(void *data, obs_data_t *settings)
{
struct replay_source *context = data;
const char *execute_action =
obs_data_get_string(settings, SETTING_EXECUTE_ACTION);
if (execute_action && strlen(execute_action)) {
if (strcmp(execute_action, "Load") == 0) {
replay_hotkey(context, 0, NULL, true);
pthread_t thread;
pthread_create(&thread, NULL, replay_thread, context);
} else if (strcmp(execute_action, "Next") == 0) {
replay_next_hotkey(context, 0, NULL, true);
} else if (strcmp(execute_action, "Previous") == 0) {
Expand Down