diff options
author | Max Kellermann <max@duempel.org> | 2014-11-26 08:49:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-26 08:49:19 +0100 |
commit | 9af470c92dd7dab57740fff266e5fd49f437572d (patch) | |
tree | 210509cd511b9193e278b3a5d27fbbb47be2252e /src/queue/Playlist.cxx | |
parent | ac8c1d0a0145a420e88ee16d9e7584b0dfcfe82d (diff) | |
download | mpd-9af470c92dd7dab57740fff266e5fd49f437572d.tar.gz mpd-9af470c92dd7dab57740fff266e5fd49f437572d.tar.xz mpd-9af470c92dd7dab57740fff266e5fd49f437572d.zip |
Playlist: add method SongStarted()
Empty currently, but code will be added song.
Diffstat (limited to '')
-rw-r--r-- | src/queue/Playlist.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx index 0dc36f5e7..4419d6e6e 100644 --- a/src/queue/Playlist.cxx +++ b/src/queue/Playlist.cxx @@ -60,6 +60,12 @@ playlist::QueueSongOrder(PlayerControl &pc, unsigned order) pc.EnqueueSong(new DetachedSong(song)); } +void +playlist::SongStarted() +{ + assert(current >= 0); +} + inline void playlist::QueuedSongStarted(PlayerControl &pc) { @@ -78,6 +84,8 @@ playlist::QueuedSongStarted(PlayerControl &pc) DeleteOrder(pc, old_current); idle_add(IDLE_PLAYER); + + SongStarted(); } const DetachedSong * @@ -152,6 +160,8 @@ playlist::PlayOrder(PlayerControl &pc, int order) pc.Play(new DetachedSong(song)); current = order; + + SongStarted(); } void |