aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/SimpleDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 22:40:42 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:01:32 +0100
commita42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988 (patch)
tree8cdb38cc68839c8610936c80de36bae81b530947 /src/db/SimpleDatabasePlugin.cxx
parentf16db6cd8054bb4722ec6e80fe529b5f2390880f (diff)
downloadmpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.tar.gz
mpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.tar.xz
mpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.zip
LightDirectory: new struct replacing Directory in the DB API
Diffstat (limited to '')
-rw-r--r--src/db/SimpleDatabasePlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx
index 3d947c042..f77d98ea5 100644
--- a/src/db/SimpleDatabasePlugin.cxx
+++ b/src/db/SimpleDatabasePlugin.cxx
@@ -21,6 +21,7 @@
#include "SimpleDatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseHelpers.hxx"
+#include "LightDirectory.hxx"
#include "Directory.hxx"
#include "Song.hxx"
#include "SongFilter.hxx"
@@ -265,7 +266,7 @@ SimpleDatabase::Visit(const DatabaseSelection &selection,
}
if (selection.recursive && visit_directory &&
- !visit_directory(*directory, error))
+ !visit_directory(directory->Export(), error))
return false;
return directory->Walk(selection.recursive, selection.filter,