diff options
Diffstat (limited to '')
-rw-r--r-- | src/DecoderInternal.hxx (renamed from src/decoder_internal.h) | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/decoder_internal.h b/src/DecoderInternal.hxx index d89e68cfc..ae50a62e2 100644 --- a/src/decoder_internal.h +++ b/src/DecoderInternal.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_DECODER_INTERNAL_H -#define MPD_DECODER_INTERNAL_H +#ifndef MPD_DECODER_INTERNAL_HXX +#define MPD_DECODER_INTERNAL_HXX #include "decoder_command.h" #include "pcm_convert.h" @@ -80,6 +80,21 @@ struct decoder { * has changed since the last check. */ unsigned replay_gain_serial; + + 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), + seeking(false), + song_tag(_tag), stream_tag(nullptr), decoder_tag(nullptr), + chunk(nullptr), + replay_gain_serial(0) { + pcm_convert_init(&conv_state); + } + + ~decoder(); }; /** |