From e202b407ec18570ad54a04c64341f654b447fb31 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 6 Jan 2013 14:55:35 +0100 Subject: Playlist: add constructor and destructor --- src/Partition.hxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/Partition.hxx') diff --git a/src/Partition.hxx b/src/Partition.hxx index b91a4b6f..a3b9e462 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -35,12 +35,8 @@ struct Partition { Partition(unsigned max_length, unsigned buffer_chunks, unsigned buffered_before_play) - :pc(buffer_chunks, buffered_before_play) { - playlist_init(&playlist, max_length); - } - - ~Partition() { - playlist_finish(&playlist); + :playlist(max_length), + pc(buffer_chunks, buffered_before_play) { } }; -- cgit v1.2.3