From 6ee76b7154a55b6bd12a4b695faed2bf49c2a5d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Aug 2012 20:03:37 +0200 Subject: DatabaseSelection: add method Match() --- src/db/SimpleDatabasePlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/db') diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx index 2d357eb98..1a16c336f 100644 --- a/src/db/SimpleDatabasePlugin.cxx +++ b/src/db/SimpleDatabasePlugin.cxx @@ -269,8 +269,7 @@ SimpleDatabase::Visit(const DatabaseSelection &selection, struct song *song; if (visit_song && (song = GetSong(selection.uri, NULL)) != NULL && - (selection.match == NULL || - locate_list_song_match(song, selection.match))) + selection.Match(*song)) return visit_song(*song, error_r); g_set_error(error_r, db_quark(), DB_NOT_FOUND, -- cgit v1.2.3