From 22e153e654ce912f2b7e8d4746b60a624208a11b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 19 Sep 2024 20:36:21 +0200 Subject: Show warning when selecting hevc/av1 on amd because of amd driver/ffmpeg bug --- src/config.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.hpp') diff --git a/src/config.hpp b/src/config.hpp index 4e01b6b..4cd0524 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -40,6 +40,8 @@ struct MainConfig { bool hide_window_when_recording = false; bool software_encoding_warning_shown = false; bool steam_deck_warning_shown = false; + bool hevc_amd_bug_warning_shown = false; + bool av1_amd_bug_warning_shown = false; bool restore_portal_session = true; }; @@ -319,6 +321,8 @@ static std::map get_config_options(Config &config) { {"main.hide_window_when_recording", {CONFIG_TYPE_BOOL, &config.main_config.hide_window_when_recording}}, {"main.software_encoding_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.software_encoding_warning_shown}}, {"main.steam_deck_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.steam_deck_warning_shown}}, + {"main.hevc_amd_bug_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.hevc_amd_bug_warning_shown}}, + {"main.av1_amd_bug_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.av1_amd_bug_warning_shown}}, {"main.restore_portal_session", {CONFIG_TYPE_BOOL, &config.main_config.restore_portal_session}}, {"streaming.service", {CONFIG_TYPE_STRING, &config.streaming_config.streaming_service}}, -- cgit v1.2.3