output/shout: use C++11 initializers
This commit is contained in:
parent
33c5da700d
commit
492aaa3375
@ -46,20 +46,17 @@ struct ShoutOutput final {
|
|||||||
|
|
||||||
Encoder *encoder;
|
Encoder *encoder;
|
||||||
|
|
||||||
float quality;
|
float quality = -2.0;
|
||||||
int bitrate;
|
int bitrate = -1;
|
||||||
|
|
||||||
int timeout;
|
int timeout = DEFAULT_CONN_TIMEOUT;
|
||||||
|
|
||||||
uint8_t buffer[32768];
|
uint8_t buffer[32768];
|
||||||
|
|
||||||
ShoutOutput()
|
ShoutOutput()
|
||||||
:base(shout_output_plugin),
|
:base(shout_output_plugin),
|
||||||
shout_conn(shout_new()),
|
shout_conn(shout_new()),
|
||||||
shout_meta(shout_metadata_new()),
|
shout_meta(shout_metadata_new()) {}
|
||||||
quality(-2.0),
|
|
||||||
bitrate(-1),
|
|
||||||
timeout(DEFAULT_CONN_TIMEOUT) {}
|
|
||||||
|
|
||||||
~ShoutOutput() {
|
~ShoutOutput() {
|
||||||
if (shout_meta != nullptr)
|
if (shout_meta != nullptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user