mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-03 10:26:42 +00:00
Fix HEVC mode if the encoder changes
This commit is contained in:
1 parent
006a6984c3
commit
d33bd00bb4
5 files changed
+21
-15
No files matched your search
@@ -25,6 +25,7 @@ vaSyncBuffer(
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
#include "src/video.h"
|
||||
|
||||
using namespace std::literals;
|
||||
|
||||
@@ -626,11 +627,11 @@ namespace va {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (config::video.hevc_mode > 1 && !query(display.get(), profile_e::HEVCMain)) {
|
||||
if (video::active_hevc_mode > 1 && !query(display.get(), profile_e::HEVCMain)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (config::video.hevc_mode > 2 && !query(display.get(), profile_e::HEVCMain10)) {
|
||||
if (video::active_hevc_mode > 2 && !query(display.get(), profile_e::HEVCMain10)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user