Commit ddd36338 authored by Max Kellermann's avatar Max Kellermann

StateFile: pass Database to SongLoader

Fixes loading database songs from state file (regression by commit 29072797).
parent d76b6f87
...@@ -25,6 +25,7 @@ ...@@ -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() ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment