Allow 'sync to content' framerate mode option on wayland (only desktop portal)

This commit is contained in:
dec05eba
2025-09-06 01:58:28 +02:00
parent b4e003c8f7
commit 4e62d12e8c
3 changed files with 6 additions and 14 deletions

View File

@@ -2561,13 +2561,10 @@ namespace gsr {
}
static std::string get_framerate_mode_validate(const RecordOptions &record_options, const GsrInfo &gsr_info) {
(void)gsr_info;
std::string framerate_mode = record_options.framerate_mode;
if(framerate_mode == "auto") {
if(framerate_mode == "auto")
framerate_mode = "vfr";
} else if(framerate_mode == "content") {
if(gsr_info.system_info.display_server != DisplayServer::X11)
framerate_mode = "vfr";
}
return framerate_mode;
}