output/shout: rename "encoding" to "encoder"

The user manual specifies "encoder", which is consistent with other
output plugins.  "encoding" should be deprecated.
This commit is contained in:
Max Kellermann
2016-07-29 10:52:03 +02:00
parent 77c6e45e65
commit 83aed7051c
3 changed files with 6 additions and 2 deletions

View File

@@ -164,7 +164,9 @@ ShoutOutput::Configure(const config_param &param, Error &error)
}
}
const char *encoding = param.GetBlockValue("encoding", "ogg");
const char *encoding = param.GetBlockValue("encoder", nullptr);
if (encoding == nullptr)
encoding = param.GetBlockValue("encoding", "vorbis");
const auto encoder_plugin = shout_encoder_plugin_get(encoding);
if (encoder_plugin == nullptr) {
error.Format(config_domain,