UI: Separate replay buffer from recording

Replay buffer and recording should be separate in case the user wants to
start recording from a specific point rather being forced to reconfigure
for regular recording.

Creates a new button on the main window below the recording button for
turning on/off the replay buffer.
This commit is contained in:
jp9000
2016-12-09 14:40:04 -08:00
parent 8f36d122be
commit f790d0fe08
11 changed files with 396 additions and 83 deletions

View File

@@ -2663,10 +2663,13 @@ void OBSBasicSettings::SaveHotkeySettings()
obs_data_array_release(array);
}
const char *id = obs_obj_get_id(main->outputHandler->fileOutput);
if (!main->outputHandler || !main->outputHandler->replayBuffer)
return;
const char *id = obs_obj_get_id(main->outputHandler->replayBuffer);
if (strcmp(id, "replay_buffer") == 0) {
obs_data_t *hotkeys = obs_hotkeys_save_output(
main->outputHandler->fileOutput);
main->outputHandler->replayBuffer);
config_set_string(config, "Hotkeys", "ReplayBuffer",
obs_data_get_json(hotkeys));
obs_data_release(hotkeys);