output/httpd: use C++11 initializers

This commit is contained in:
Max Kellermann
2017-11-10 21:15:57 +01:00
parent ec20784046
commit b83fbad6a1
4 changed files with 13 additions and 23 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ class HttpdOutput final : AudioOutput, ServerSocket, DeferredMonitor {
* The configured encoder plugin.
*/
PreparedEncoder *prepared_encoder = nullptr;
Encoder *encoder;
Encoder *encoder = nullptr;
/**
* Number of bytes which were fed into the encoder, without
@@ -69,7 +69,7 @@ class HttpdOutput final : AudioOutput, ServerSocket, DeferredMonitor {
* whether MPD should manually flush the encoder, to avoid
* buffer underruns in the client.
*/
size_t unflushed_input;
size_t unflushed_input = 0;
public:
/**