0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Add composition_gpu_index to multitrack video postdata

This commit is contained in:
Ruwen Hahn 2024-06-14 18:41:47 +02:00 committed by Ryan Foster
parent d7e2636316
commit 600a564039
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,8 @@ constructGoLivePost(QString streamKey,
preferences.canvas_width = ovi.base_width;
preferences.canvas_height = ovi.base_height;
preferences.composition_gpu_index = ovi.adapter;
}
if (maximum_aggregate_bitrate.has_value())

View File

@ -191,11 +191,12 @@ struct Preferences {
media_frames_per_second framerate;
uint32_t canvas_width;
uint32_t canvas_height;
optional<uint32_t> composition_gpu_index;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(Preferences, maximum_aggregate_bitrate,
maximum_video_tracks, vod_track_audio,
width, height, framerate, canvas_width,
canvas_height)
canvas_height, composition_gpu_index)
};
struct PostData {