aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Archive.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-06 18:58:15 +0100
committerMax Kellermann <max@duempel.org>2014-02-06 19:06:08 +0100
commit29b18d9ab7e98dddccc89614eec05b4716029e36 (patch)
tree189df09aa657726777d71a7c55925c74f08f526b /src/db/update/Archive.cxx
parentad309cdeae3531abb14529d04fc43062a4385388 (diff)
downloadmpd-29b18d9ab7e98dddccc89614eec05b4716029e36.tar.gz
mpd-29b18d9ab7e98dddccc89614eec05b4716029e36.tar.xz
mpd-29b18d9ab7e98dddccc89614eec05b4716029e36.zip
SongUpdate: use the Storage interface, support remote files
This commit finally allows the database update to scan remote files, e.g. using the smbclient storage plugin. However, it is not yet possible to configure that, therefore the feature is not accessible yet.
Diffstat (limited to 'src/db/update/Archive.cxx')
-rw-r--r--src/db/update/Archive.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx
index ab03ea3fa..940448921 100644
--- a/src/db/update/Archive.cxx
+++ b/src/db/update/Archive.cxx
@@ -65,7 +65,7 @@ UpdateWalk::UpdateArchiveTree(Directory &directory, const char *name)
Song *song = directory.FindSong(name);
db_unlock();
if (song == nullptr) {
- song = Song::LoadFile(name, directory);
+ song = Song::LoadFile(storage, name, directory);
if (song != nullptr) {
db_lock();
directory.AddSong(song);