diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-24 14:58:17 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-24 14:58:17 +0100 |
commit | 9b9144f25de86fd6a5a83ffbdabaa0a4e3881080 (patch) | |
tree | d20ad4c162f2e015f14851a50a78fa394e1bf7ec /src/decoder/DecoderControl.hxx | |
parent | b677e891b4caee26eb898398b6cb85702cd302c8 (diff) |
decoder/Control: use C++11 initializers
Diffstat (limited to 'src/decoder/DecoderControl.hxx')
-rw-r--r-- | src/decoder/DecoderControl.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/decoder/DecoderControl.hxx b/src/decoder/DecoderControl.hxx index 5a30e822b..79bd119a7 100644 --- a/src/decoder/DecoderControl.hxx +++ b/src/decoder/DecoderControl.hxx @@ -89,8 +89,8 @@ struct DecoderControl { */ Cond &client_cond; - DecoderState state; - DecoderCommand command; + DecoderState state = DecoderState::STOP; + DecoderCommand command = DecoderCommand::NONE; /** * The error that occurred in the decoder thread. This @@ -107,7 +107,7 @@ struct DecoderControl { * false, the DecoderThread may omit invoking Cond::signal(), * reducing the number of system calls. */ - bool client_is_waiting; + bool client_is_waiting = false; bool seek_error; bool seekable; @@ -127,7 +127,7 @@ struct DecoderControl { * This is a duplicate, and must be freed when this attribute * is cleared. */ - DetachedSong *song; + DetachedSong *song = nullptr; /** * The initial seek position, e.g. to the start of a sub-track @@ -156,8 +156,8 @@ struct DecoderControl { */ MusicPipe *pipe; - float replay_gain_db; - float replay_gain_prev_db; + float replay_gain_db = 0; + float replay_gain_prev_db = 0; MixRampInfo mix_ramp, previous_mix_ramp; |