diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 21:59:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 21:59:03 +0100 |
commit | ffabf8b01313e58528b0e89ccca8bc07d22d360b (patch) | |
tree | bc6a15819214ba839929b6804c853a7a4ddf41f1 /src/DecoderInternal.hxx | |
parent | e9b71a0d2846321dcf3f985b9f6332d051374edd (diff) | |
download | mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.tar.gz mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.tar.xz mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.zip |
DecoderInternal: move initializers to constructor
Diffstat (limited to 'src/DecoderInternal.hxx')
-rw-r--r-- | src/DecoderInternal.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/DecoderInternal.hxx b/src/DecoderInternal.hxx index 698e90bf1..8e3a7d4b1 100644 --- a/src/DecoderInternal.hxx +++ b/src/DecoderInternal.hxx @@ -81,12 +81,15 @@ struct decoder { */ unsigned replay_gain_serial; -#ifdef __cplusplus - decoder(decoder_control *_dc, bool _initial_seek_pending) + decoder(decoder_control *_dc, bool _initial_seek_pending, + struct tag *_tag) :dc(_dc), + timestamp(0), initial_seek_pending(_initial_seek_pending), - initial_seek_running(false) {} -#endif + initial_seek_running(false), + seeking(false), + song_tag(_tag), stream_tag(nullptr), decoder_tag(nullptr), + chunk(nullptr) {} }; /** |