StateFile: pass Database to SongLoader
Fixes loading database songs from state file (regression by commit
29072797c
).
This commit is contained in:
parent
d76b6f878e
commit
ddd36338da
@ -25,6 +25,7 @@
|
|||||||
#include "Partition.hxx"
|
#include "Partition.hxx"
|
||||||
#include "mixer/Volume.hxx"
|
#include "mixer/Volume.hxx"
|
||||||
#include "SongLoader.hxx"
|
#include "SongLoader.hxx"
|
||||||
|
#include "db/DatabaseGlue.hxx"
|
||||||
#include "fs/FileSystem.hxx"
|
#include "fs/FileSystem.hxx"
|
||||||
#include "util/Domain.hxx"
|
#include "util/Domain.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
@ -97,7 +98,7 @@ StateFile::Read()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SongLoader song_loader(nullptr);
|
const SongLoader song_loader(nullptr, GetDatabase());
|
||||||
|
|
||||||
const char *line;
|
const char *line;
|
||||||
while ((line = file.ReadLine()) != NULL) {
|
while ((line = file.ReadLine()) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user