aboutsummaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 22:45:14 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 22:45:14 +0100
commit2a9d933a81a6192f4d30cbf68253727f92f9bdac (patch)
treea61d258c61cd25efaa500a516b8df8b094ffa88e /src/Main.cxx
parent81f3d893d9e41120d76a3e710db77ccd829cbf42 (diff)
PlayerControl: add constructor and destructor
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index b10e0f32..b4b5cbb8 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -306,7 +306,8 @@ initialize_decoder_and_player(void)
if (buffered_before_play > buffered_chunks)
buffered_before_play = buffered_chunks;
- global_player_control = pc_new(buffered_chunks, buffered_before_play);
+ global_player_control = new player_control(buffered_chunks,
+ buffered_before_play);
}
/**
@@ -538,7 +539,7 @@ int mpd_main(int argc, char *argv[])
volume_finish();
mapper_finish();
path_global_finish();
- pc_free(global_player_control);
+ delete global_player_control;
command_finish();
update_global_finish();
decoder_plugin_deinit_all();