diff options
author | Max Kellermann <max@duempel.org> | 2013-01-06 14:58:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-06 18:59:39 +0100 |
commit | 70652abf9750b62d2b4e5857d894494ae6058cf1 (patch) | |
tree | ba38fec9699eb2094cb2dda7a6f3f9dbb427a709 /src/Playlist.hxx | |
parent | e202b407ec18570ad54a04c64341f654b447fb31 (diff) | |
download | mpd-70652abf9750b62d2b4e5857d894494ae6058cf1.tar.gz mpd-70652abf9750b62d2b4e5857d894494ae6058cf1.tar.xz mpd-70652abf9750b62d2b4e5857d894494ae6058cf1.zip |
Queue: add constructor and destructor
Diffstat (limited to 'src/Playlist.hxx')
-rw-r--r-- | src/Playlist.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Playlist.hxx b/src/Playlist.hxx index b158d0464..a93c88f05 100644 --- a/src/Playlist.hxx +++ b/src/Playlist.hxx @@ -70,12 +70,10 @@ struct playlist { int queued; playlist(unsigned max_length) - :current(-1), queued(-1) { - queue_init(&queue, max_length); + :queue(max_length), current(-1), queued(-1) { } ~playlist() { - queue_finish(&queue); } }; |