song/PrioritySongFilter: new filter

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1412
This commit is contained in:
Max Kellermann
2022-02-14 13:35:08 +01:00
parent c68dbc4e5c
commit 2172aaf1ce
8 changed files with 114 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ Queue::GetLight(unsigned position) const noexcept
assert(position < length);
LightSong song{Get(position)};
song.priority = GetPriorityAtPosition(position);
return song;
}