obs-ffmpeg: Enable file splitting with obs_data directly

Also modifies UI accordingly.

This can enable file splitting even if no time or storage limit is set.
This commit is contained in:
gxalpha 2022-07-21 14:04:57 +02:00 • committed by Sebastian Beckmann
commit 8fd2f164b7
2 changed files with 2 additions and 2 deletions

View file

@ -1937,6 +1937,7 @@ bool AdvancedOutput::StartRecording()
obs_data_set_bool(settings, "allow_spaces", !noSpace);
obs_data_set_bool(settings, "allow_overwrite",
overwriteIfExists);
obs_data_set_bool(settings, "split_file", true);
obs_data_set_int(settings, "max_time_sec",
splitFileTime * 60);
obs_data_set_int(settings, "max_size_mb",