mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-08 08:39:55 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user