frontend: Always limit multitrack video encoders to libobs maximum
This commit is contained in:
parent
de7df57ee2
commit
811072d0fd
1 changed files with 6 additions and 0 deletions
|
|
@ -74,5 +74,11 @@ GoLiveApi::PostData constructGoLivePost(QString streamKey, const std::optional<u
|
|||
if (maximum_video_tracks.has_value())
|
||||
preferences.maximum_video_tracks = maximum_video_tracks.value();
|
||||
|
||||
/* Always cap to maximum number of output encoders. */
|
||||
if (!preferences.maximum_video_tracks.has_value() ||
|
||||
preferences.maximum_video_tracks.value() > MAX_OUTPUT_VIDEO_ENCODERS) {
|
||||
preferences.maximum_video_tracks = MAX_OUTPUT_VIDEO_ENCODERS;
|
||||
}
|
||||
|
||||
return post_data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue