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.
This commit is contained in:
Max Kellermann
2014-11-26 08:54:16 +01:00
parent 7519768cb1
commit 12b6959ea2
3 changed files with 7 additions and 1 deletions

View File

@@ -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