diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-02 17:22:25 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-02 17:24:34 +0100 |
commit | be65c7d5d0bb6a1bf46c58f0b488d0685966df1d (patch) | |
tree | 30ffdb42faf9b2ce1579a5c4b5dcd1d8c07deb1d /src/decoder/plugins/FluidsynthDecoderPlugin.cxx | |
parent | 7c5306a84182f2dd5c3adce75980e31b4476b4c0 (diff) |
config/Block: add method GetPositiveValue()
Adds missing checks to several plugins.
Diffstat (limited to 'src/decoder/plugins/FluidsynthDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/FluidsynthDecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx index 3eaf1d67e..e92c1c306 100644 --- a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx +++ b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx @@ -74,7 +74,7 @@ fluidsynth_mpd_log_function(int level, char *message, gcc_unused void *data) static bool fluidsynth_init(const ConfigBlock &block) { - sample_rate = block.GetBlockValue("sample_rate", 48000u); + sample_rate = block.GetPositiveValue("sample_rate", 48000u); CheckSampleRate(sample_rate); soundfont_path = block.GetBlockValue("soundfont", |