output/shout: make "quality" and "bitrate" local variables

This commit is contained in:
Max Kellermann 2017-11-10 22:17:51 +01:00
parent 6464b4b372
commit 015527d870
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,6 @@ struct ShoutOutput final : AudioOutput {
std::unique_ptr<PreparedEncoder> prepared_encoder;
Encoder *encoder;
float quality = -2.0;
int bitrate = -1;
int timeout = DEFAULT_CONN_TIMEOUT;
uint8_t buffer[32768];
@ -120,6 +117,9 @@ ShoutOutput::ShoutOutput(const ConfigBlock &block)
const char *user = block.GetBlockValue("user", "source");
float quality = -2.0;
int bitrate = -1;
const char *value = block.GetBlockValue("quality");
if (value != nullptr) {
char *test;