queue/Queue: add method GetLight()

This commit is contained in:
Max Kellermann
2022-02-14 13:20:56 +01:00
parent ec961f26e9
commit c68dbc4e5c
4 changed files with 23 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ QueueSelection::MatchPosition(const Queue &queue,
unsigned position) const noexcept
{
if (filter != nullptr) {
const LightSong song{queue.Get(position)};
const auto song = queue.GetLight(position);
if (!filter->Match(song))
return false;
}