aboutsummaryrefslogtreecommitdiff
path: root/src/Partition.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-06 14:55:35 +0100
committerMax Kellermann <max@duempel.org>2013-01-06 18:59:33 +0100
commite202b407ec18570ad54a04c64341f654b447fb31 (patch)
tree5389f1a2fbbaa4791e986620e9f23ee4c9bc2f2c /src/Partition.hxx
parent2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa (diff)
Playlist: add constructor and destructor
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r--src/Partition.hxx8
1 files changed, 2 insertions, 6 deletions
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) {
}
};