From fa2a75347728fe03423173da674e6ab165fa314d Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Tue, 23 Oct 2018 18:35:09 +0300 Subject: [PATCH] daemon-conf: fix printing avoid-resampling in pa_daemon_conf_dump() The bool was inverted for some reason - maybe because the next line prints enable-remixing that needs to be inverted from disable_remixing, and somehow this logic was accidentally copied to the avoid-resampling handling. Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/568 --- src/daemon/daemon-conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c index 6a3957859..f956a55af 100644 --- a/src/daemon/daemon-conf.c +++ b/src/daemon/daemon-conf.c @@ -756,7 +756,7 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) { pa_strbuf_printf(s, "log-target = %s\n", pa_strempty(log_target)); pa_strbuf_printf(s, "log-level = %s\n", log_level_to_string[c->log_level]); pa_strbuf_printf(s, "resample-method = %s\n", pa_resample_method_to_string(c->resample_method)); - pa_strbuf_printf(s, "avoid-resampling = %s\n", pa_yes_no(!c->avoid_resampling)); + pa_strbuf_printf(s, "avoid-resampling = %s\n", pa_yes_no(c->avoid_resampling)); pa_strbuf_printf(s, "enable-remixing = %s\n", pa_yes_no(!c->disable_remixing)); pa_strbuf_printf(s, "remixing-use-all-sink-channels = %s\n", pa_yes_no(c->remixing_use_all_sink_channels)); pa_strbuf_printf(s, "enable-lfe-remixing = %s\n", pa_yes_no(!c->disable_lfe_remixing));