diff options
author | Max Kellermann <max@duempel.org> | 2014-02-04 10:30:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 10:30:51 +0100 |
commit | ddd36338da9f5e20dd88eb2b2276120f668d6b38 (patch) | |
tree | 36299329e3f666678b992ef9eacfc887b7e19abd /src/StateFile.cxx | |
parent | d76b6f878e06d052ab54415783c39997939349e0 (diff) | |
download | mpd-ddd36338da9f5e20dd88eb2b2276120f668d6b38.tar.gz mpd-ddd36338da9f5e20dd88eb2b2276120f668d6b38.tar.xz mpd-ddd36338da9f5e20dd88eb2b2276120f668d6b38.zip |
StateFile: pass Database to SongLoader
Fixes loading database songs from state file (regression by commit
29072797c).
Diffstat (limited to '')
-rw-r--r-- | src/StateFile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 4d2813136..6c01be53c 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -25,6 +25,7 @@ #include "Partition.hxx" #include "mixer/Volume.hxx" #include "SongLoader.hxx" +#include "db/DatabaseGlue.hxx" #include "fs/FileSystem.hxx" #include "util/Domain.hxx" #include "Log.hxx" @@ -97,7 +98,7 @@ StateFile::Read() return; } - const SongLoader song_loader(nullptr); + const SongLoader song_loader(nullptr, GetDatabase()); const char *line; while ((line = file.ReadLine()) != NULL) { |