diff options
Diffstat (limited to '')
-rw-r--r-- | src/Playlist.hxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Playlist.hxx b/src/Playlist.hxx index 163d17afe..b158d0464 100644 --- a/src/Playlist.hxx +++ b/src/Playlist.hxx @@ -68,16 +68,19 @@ struct playlist { * This variable is only valid if #playing is true. */ int queued; -}; -void -playlist_global_init(); + playlist(unsigned max_length) + :current(-1), queued(-1) { + queue_init(&queue, max_length); + } -void -playlist_init(struct playlist *playlist, unsigned max_length); + ~playlist() { + queue_finish(&queue); + } +}; void -playlist_finish(struct playlist *playlist); +playlist_global_init(); void playlist_tag_changed(struct playlist *playlist); |