From 7faea52d6776618d297c9acefb8a5e83ec44e051 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 10 Aug 2019 22:40:37 +0200 Subject: [PATCH] ui/nvenc_shared: Hide the QP group if mode is not CQP or VBR --- source/ui/nvenc_shared.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/ui/nvenc_shared.cpp b/source/ui/nvenc_shared.cpp index 526c950..6fba309 100644 --- a/source/ui/nvenc_shared.cpp +++ b/source/ui/nvenc_shared.cpp @@ -204,9 +204,9 @@ static bool modified_ratecontrol(obs_properties_t* props, obs_property_t*, obs_d obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QUALITY), have_quality); obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QUALITY_MINIMUM), have_quality); obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QUALITY_MAXIMUM), have_quality); - obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QUALITY_TARGET), have_quality); + obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QP), have_qp || have_qp_init); obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QP_I), have_qp); obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QP_P), have_qp); obs_property_set_visible(obs_properties_get(props, ST_RATECONTROL_QP_B), have_qp); @@ -514,7 +514,6 @@ void obsffmpeg::nvenc::update(obs_data_t* settings, const AVCodec* codec, AVCode bool have_bitrate = false; bool have_bitrate_max = false; bool have_quality = false; - bool have_quality_max = false; bool have_qp = false; bool have_qp_init = false;