diff options
author | Max Kellermann <max@duempel.org> | 2014-11-26 08:54:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-26 08:54:16 +0100 |
commit | 12b6959ea201fea925c4376f961b8d54738292e2 (patch) | |
tree | f95b7d9794e5e2053000bab8472ecb5ee58bbb86 /src/queue/Playlist.cxx | |
parent | 7519768cb1a9ed27012111d30cc69238616aba04 (diff) |
Playlist: reset song priority on playback
A priority should be a volatile thing: it should schedule a song for
playing back once, but it should not affect the next time the queue
gets played.
Diffstat (limited to 'src/queue/Playlist.cxx')
-rw-r--r-- | src/queue/Playlist.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx index 4419d6e6e..60588ab90 100644 --- a/src/queue/Playlist.cxx +++ b/src/queue/Playlist.cxx @@ -64,6 +64,10 @@ void playlist::SongStarted() { assert(current >= 0); + + /* reset a song's "priority" when playback starts */ + if (queue.SetPriority(queue.OrderToPosition(current), 0, -1, false)) + OnModified(); } inline void |