Commit 492aaa33 authored by Max Kellermann's avatar Max Kellermann

output/shout: use C++11 initializers

parent 33c5da70
......@@ -46,20 +46,17 @@ struct ShoutOutput final {
Encoder *encoder;
float quality;
int bitrate;
float quality = -2.0;
int bitrate = -1;
int timeout;
int timeout = DEFAULT_CONN_TIMEOUT;
uint8_t buffer[32768];
ShoutOutput()
:base(shout_output_plugin),
shout_conn(shout_new()),
shout_meta(shout_metadata_new()),
quality(-2.0),
bitrate(-1),
timeout(DEFAULT_CONN_TIMEOUT) {}
shout_meta(shout_metadata_new()) {}
~ShoutOutput() {
if (shout_meta != nullptr)
......
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