aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-13 21:01:35 +0200
committerMax Kellermann <max@duempel.org>2011-09-13 21:01:35 +0200
commit2fe1b5034d85b9d80ec555a8736d6bbef2eaf901 (patch)
tree1a05031ab7deab2ac6a43e66544b7a1c32464d02 /src/database.c
parentb4430839a3413893a027f7a0fc5494af8198e1bb (diff)
downloadmpd-2fe1b5034d85b9d80ec555a8736d6bbef2eaf901.tar.gz
mpd-2fe1b5034d85b9d80ec555a8736d6bbef2eaf901.tar.xz
mpd-2fe1b5034d85b9d80ec555a8736d6bbef2eaf901.zip
db_plugin: add method get_song()
New db_get_song() implementation.
Diffstat (limited to '')
-rw-r--r--src/database.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index cb79c1d39..e3fa7442b 100644
--- a/src/database.c
+++ b/src/database.c
@@ -104,8 +104,7 @@ db_get_song(const char *file)
if (db == NULL)
return NULL;
- struct directory *music_root = db_get_root();
- return directory_lookup_song(music_root, file);
+ return db_plugin_get_song(db, file, NULL);
}
bool