PlaylistMapper: use class Storage instead of Mapper.cxx

This commit is contained in:
Max Kellermann
2014-02-07 20:22:26 +01:00
parent 77de233117
commit 297e2747f3
7 changed files with 64 additions and 12 deletions

View File

@@ -28,6 +28,7 @@
#include "fs/Traits.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "client/Client.hxx"
static void
playlist_provider_print(Client &client, const char *uri,
@@ -59,7 +60,11 @@ playlist_file_print(Client &client, const char *uri, bool detail)
Mutex mutex;
Cond cond;
SongEnumerator *playlist = playlist_open_any(uri, mutex, cond);
SongEnumerator *playlist = playlist_open_any(uri,
#ifdef ENABLE_DATABASE
client.GetStorage(),
#endif
mutex, cond);
if (playlist == nullptr)
return false;