aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-29 20:03:37 +0200
committerMax Kellermann <max@duempel.org>2012-08-29 20:03:37 +0200
commit6ee76b7154a55b6bd12a4b695faed2bf49c2a5d5 (patch)
tree46c833dd03defa1e0aa907896653edc24d1f176a /src/db
parent36b1c08ad7245a403578731c5d1240da8fc61d72 (diff)
downloadmpd-6ee76b7154a55b6bd12a4b695faed2bf49c2a5d5.tar.gz
mpd-6ee76b7154a55b6bd12a4b695faed2bf49c2a5d5.tar.xz
mpd-6ee76b7154a55b6bd12a4b695faed2bf49c2a5d5.zip
DatabaseSelection: add method Match()
Diffstat (limited to 'src/db')
-rw-r--r--src/db/SimpleDatabasePlugin.cxx3
1 files changed, 1 insertions, 2 deletions
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,