diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 17:52:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 21:36:04 +0100 |
commit | 595b6a4f6c2a6f12fb2b3c83f4053942844ffa84 (patch) | |
tree | bdfaf87414fac0359a8fd2e15911098fbe9d6348 /src/OutputInit.cxx | |
parent | daa46477125145dd943122c8064c7271a1a9429f (diff) | |
download | mpd-595b6a4f6c2a6f12fb2b3c83f4053942844ffa84.tar.gz mpd-595b6a4f6c2a6f12fb2b3c83f4053942844ffa84.tar.xz mpd-595b6a4f6c2a6f12fb2b3c83f4053942844ffa84.zip |
ConfigFile: add enum ConfigOption
Look up top-level config options by enum (= integer), not by name
string.
Diffstat (limited to 'src/OutputInit.cxx')
-rw-r--r-- | src/OutputInit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OutputInit.cxx b/src/OutputInit.cxx index 2890b3f29..4e352f287 100644 --- a/src/OutputInit.cxx +++ b/src/OutputInit.cxx @@ -91,7 +91,8 @@ audio_output_mixer_type(const struct config_param *param) /* fall back to the global "mixer_type" setting (also deprecated) */ - return mixer_type_parse(config_get_string("mixer_type", "hardware")); + return mixer_type_parse(config_get_string(CONF_MIXER_TYPE, + "hardware")); } static struct mixer * @@ -312,8 +313,7 @@ audio_output_new(const struct config_param *param, return nullptr; } } else { - g_warning("No \"%s\" defined in config file\n", - CONF_AUDIO_OUTPUT); + g_warning("No 'audio_output' defined in config file\n"); plugin = audio_output_detect(error_r); if (plugin == NULL) |