mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Fix AMF debug logging to be conditional based on configured log level
This commit is contained in:
@@ -761,6 +761,7 @@ namespace video {
|
||||
// Common options
|
||||
{
|
||||
{ "filler_data"s, false },
|
||||
{ "log_to_dbg"s, config::sunshine.min_log_level < 2 ? 1 : 0 },
|
||||
{ "preanalysis"s, &config::video.amd.amd_preanalysis },
|
||||
{ "quality"s, &config::video.amd.amd_quality_av1 },
|
||||
{ "rc"s, &config::video.amd.amd_rc_av1 },
|
||||
@@ -775,6 +776,7 @@ namespace video {
|
||||
// Common options
|
||||
{
|
||||
{ "filler_data"s, false },
|
||||
{ "log_to_dbg"s, config::sunshine.min_log_level < 2 ? 1 : 0 },
|
||||
{ "gops_per_idr"s, 1 },
|
||||
{ "header_insertion_mode"s, "idr"s },
|
||||
{ "preanalysis"s, &config::video.amd.amd_preanalysis },
|
||||
@@ -794,7 +796,7 @@ namespace video {
|
||||
// Common options
|
||||
{
|
||||
{ "filler_data"s, false },
|
||||
{ "log_to_dbg"s, "1"s },
|
||||
{ "log_to_dbg"s, config::sunshine.min_log_level < 2 ? 1 : 0 },
|
||||
{ "preanalysis"s, &config::video.amd.amd_preanalysis },
|
||||
{ "qmax"s, 51 },
|
||||
{ "qmin"s, 0 },
|
||||
|
||||
Reference in New Issue
Block a user