StateFile: pass Database to SongLoader

Fixes loading database songs from state file (regression by commit
29072797c).
This commit is contained in:
Max Kellermann 2014-02-04 10:30:51 +01:00
parent d76b6f878e
commit ddd36338da
1 changed files with 2 additions and 1 deletions

View File

@ -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) {