output/shout: make "quality" and "bitrate" local variables
This commit is contained in:
parent
6464b4b372
commit
015527d870
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue