diff options
Diffstat (limited to '')
-rw-r--r-- | src/Main.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index b10e0f328..b4b5cbb8e 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(); |