From 492aaa3375be72d48a779fe215bc524555d1f7a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 May 2016 14:46:45 +0200 Subject: [PATCH] output/shout: use C++11 initializers --- src/output/plugins/ShoutOutputPlugin.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx index 4253f3be2..68c570ade 100644 --- a/src/output/plugins/ShoutOutputPlugin.cxx +++ b/src/output/plugins/ShoutOutputPlugin.cxx @@ -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)