aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 23:04:42 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 23:04:42 +0100
commitb0833084a6e8f13faead5dfda92786a2b0f9e02e (patch)
tree26d25c3c12a0a4b81f1dd15ccb2b2f6d6244f77a
parent3cacaa5dad355234cdc57148f4daf09931e6ea10 (diff)
downloadmpd-b0833084a6e8f13faead5dfda92786a2b0f9e02e.tar.gz
mpd-b0833084a6e8f13faead5dfda92786a2b0f9e02e.tar.xz
mpd-b0833084a6e8f13faead5dfda92786a2b0f9e02e.zip
PlayerControl: initialize all attributes
-rw-r--r--src/PlayerControl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index 554033e74..275556fe8 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -39,14 +39,18 @@ player_control::player_control(unsigned _buffer_chunks,
unsigned _buffered_before_play)
:buffer_chunks(_buffer_chunks),
buffered_before_play(_buffered_before_play),
+ thread(nullptr),
mutex(g_mutex_new()),
cond(g_cond_new()),
command(PLAYER_COMMAND_NONE),
state(PLAYER_STATE_STOP),
error_type(PLAYER_ERROR_NONE),
+ error(nullptr),
+ next_song(nullptr),
cross_fade_seconds(0),
mixramp_db(0),
- mixramp_delay_seconds(nanf(""))
+ mixramp_delay_seconds(nanf("")),
+ total_play_time(0)
{
}