From 12b6959ea201fea925c4376f961b8d54738292e2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Nov 2014 08:54:16 +0100 Subject: 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. --- src/queue/Playlist.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/queue') 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 -- cgit v1.2.3