mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-06 06:14:43 -04:00
UI: Re-arrange multitrack-video schema to version 2024-06-04
Co-authored-by: Ruwen Hahn <haruwenz@twitch.tv>
This commit is contained in:
committed by
Ryan Foster
parent
ce4171908b
commit
14d2c80560
@@ -456,8 +456,17 @@ bool AutoConfigStreamPage::validatePage()
|
||||
int multitrackVideoBitrate = 0;
|
||||
for (auto &encoder_config :
|
||||
config.encoder_configurations) {
|
||||
multitrackVideoBitrate +=
|
||||
encoder_config.config.bitrate;
|
||||
auto it =
|
||||
encoder_config.settings.find("bitrate");
|
||||
if (it == encoder_config.settings.end())
|
||||
continue;
|
||||
|
||||
if (!it->is_number_integer())
|
||||
continue;
|
||||
|
||||
int bitrate = 0;
|
||||
it->get_to(bitrate);
|
||||
multitrackVideoBitrate += bitrate;
|
||||
}
|
||||
|
||||
// grab a streamkey from the go live config if we can
|
||||
|
||||
Reference in New Issue
Block a user