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/DecoderThread.cxx | |
parent | e9b71a0d2846321dcf3f985b9f6332d051374edd (diff) | |
download | mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.tar.gz mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.tar.xz mpd-ffabf8b01313e58528b0e89ccca8bc07d22d360b.zip |
DecoderInternal: move initializers to constructor
Diffstat (limited to '')
-rw-r--r-- | src/DecoderThread.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx index f6f8437ab..cf16bea2d 100644 --- a/src/DecoderThread.cxx +++ b/src/DecoderThread.cxx @@ -380,17 +380,11 @@ static void decoder_run_song(struct decoder_control *dc, const struct song *song, const char *uri) { - decoder decoder(dc, dc->start_ms > 0); + decoder decoder(dc, dc->start_ms > 0, + song->tag != NULL && song_is_file(song) + ? tag_dup(song->tag) : nullptr); int ret; - decoder.timestamp = 0.0; - decoder.seeking = false; - decoder.song_tag = song->tag != NULL && song_is_file(song) - ? tag_dup(song->tag) : NULL; - decoder.stream_tag = NULL; - decoder.decoder_tag = NULL; - decoder.chunk = NULL; - dc->state = DECODE_STATE_START; decoder_command_finished_locked(dc); |