Playlist: add constructor and destructor

This commit is contained in:
Max Kellermann
2013-01-06 14:55:35 +01:00
parent 2cc89e60cc
commit e202b407ec
3 changed files with 11 additions and 27 deletions

View File

@@ -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) {
}
};