Playlist: convert functions to methods

This commit is contained in:
Max Kellermann
2013-01-07 10:55:05 +01:00
parent 400ff1c812
commit 52638c68f5
16 changed files with 687 additions and 806 deletions

View File

@@ -80,8 +80,7 @@ playlist_print_id(Client *client, const struct playlist *playlist,
bool
playlist_print_current(Client *client, const struct playlist *playlist)
{
int current_position = playlist_get_current_song(playlist);
int current_position = playlist->GetCurrentPosition();
if (current_position < 0)
return false;