song/OptimizeFilter: optimization stage for filters

This commit is contained in:
Max Kellermann
2018-08-02 19:42:53 +02:00
parent 2d2120338b
commit 027e562f65
12 changed files with 133 additions and 0 deletions

View File

@@ -272,6 +272,7 @@ handle_playlist_match(Client &client, Request args, Response &r,
GetFullMessage(std::current_exception()).c_str());
return CommandResult::ERROR;
}
filter.Optimize();
playlist_print_find(r, client.GetPlaylist(), filter);
return CommandResult::OK;