Merge branch 'v0.19.x'

This commit is contained in:
Max Kellermann
2016-07-29 20:23:45 +02:00
9 changed files with 349 additions and 73 deletions

View File

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