Commit 015527d8 authored by Max Kellermann's avatar Max Kellermann

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

parent 6464b4b3
...@@ -46,9 +46,6 @@ struct ShoutOutput final : AudioOutput { ...@@ -46,9 +46,6 @@ struct ShoutOutput final : AudioOutput {
std::unique_ptr<PreparedEncoder> prepared_encoder; std::unique_ptr<PreparedEncoder> prepared_encoder;
Encoder *encoder; Encoder *encoder;
float quality = -2.0;
int bitrate = -1;
int timeout = DEFAULT_CONN_TIMEOUT; int timeout = DEFAULT_CONN_TIMEOUT;
uint8_t buffer[32768]; uint8_t buffer[32768];
...@@ -120,6 +117,9 @@ ShoutOutput::ShoutOutput(const ConfigBlock &block) ...@@ -120,6 +117,9 @@ ShoutOutput::ShoutOutput(const ConfigBlock &block)
const char *user = block.GetBlockValue("user", "source"); const char *user = block.GetBlockValue("user", "source");
float quality = -2.0;
int bitrate = -1;
const char *value = block.GetBlockValue("quality"); const char *value = block.GetBlockValue("quality");
if (value != nullptr) { if (value != nullptr) {
char *test; char *test;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment